correct general most-wide Exception handling
This commit is contained in:
parent
dc3c00dc53
commit
f23fbc8edb
|
@ -56,7 +56,7 @@ class ungleichVPN(object):
|
|||
'email': args.email,
|
||||
'public_key': args.public_key
|
||||
})
|
||||
except e:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
return None
|
||||
if r.status_code == 200:
|
||||
|
@ -79,7 +79,7 @@ class ungleichVPN(object):
|
|||
'realm': args.realm,
|
||||
'seed': args.seed
|
||||
})
|
||||
except e:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue