correct general most-wide Exception handling
This commit is contained in:
parent
dc3c00dc53
commit
f23fbc8edb
12 changed files with 12 additions and 2 deletions
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
Pipfile
Normal file → Executable file
0
Pipfile
Normal file → Executable file
0
Pipfile.lock
generated
Normal file → Executable file
0
Pipfile.lock
generated
Normal file → Executable file
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
0
ungleich_account.py
Normal file → Executable file
0
ungleich_account.py
Normal file → Executable file
0
ungleich_config.py
Normal file → Executable file
0
ungleich_config.py
Normal file → Executable file
0
ungleich_dns.py
Normal file → Executable file
0
ungleich_dns.py
Normal file → Executable file
0
ungleich_ripe.py
Normal file → Executable file
0
ungleich_ripe.py
Normal file → Executable file
0
ungleich_ssh_key.py
Normal file → Executable file
0
ungleich_ssh_key.py
Normal file → Executable file
4
ungleich_vpn.py
Normal file → Executable file
4
ungleich_vpn.py
Normal file → Executable file
|
@ -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
|
||||
|
||||
|
|
0
ungleich_weather.py
Normal file → Executable file
0
ungleich_weather.py
Normal file → Executable file
10
wg0.conf
Executable file
10
wg0.conf
Executable file
|
@ -0,0 +1,10 @@
|
|||
[Interface]
|
||||
PrivateKey = Your_Private_Key
|
||||
Address = 2a0a:e5c1:101::42/48
|
||||
ListenPort = 51280
|
||||
|
||||
[Peer]
|
||||
PublicKey = testpub
|
||||
EndPoint = vpn-2a0ae5c1.ungleich.ch:51820
|
||||
AllowedIPs = ::/0
|
||||
|
Loading…
Reference in a new issue