Skip to content
Snippets Groups Projects
Unverified Commit a4cbc4c6 authored by murych's avatar murych
Browse files

added exceptions in auth

parent c41339a3
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -11,14 +11,17 @@ def auth_slack():
try:
api.auth.test()
except Exception as e:
print('not authed\n', e)
print('slack not authed\n', e)
 
return api
 
 
def auth_vk():
session = Session()
api = API(session)
try:
session = Session()
api = API(session)
except Exception as e:
print('vk not authed\n', e)
 
return api
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment