From f23fbc8edbe758c24a7c89ddf617e5943ce66c8e Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Mon, 12 Aug 2019 21:56:37 +0500 Subject: [PATCH] correct general most-wide Exception handling --- .gitignore | 0 Pipfile | 0 Pipfile.lock | 0 README.md | 0 ungleich_account.py | 0 ungleich_config.py | 0 ungleich_dns.py | 0 ungleich_ripe.py | 0 ungleich_ssh_key.py | 0 ungleich_vpn.py | 4 ++-- ungleich_weather.py | 0 wg0.conf | 10 ++++++++++ 12 files changed, 12 insertions(+), 2 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 Pipfile mode change 100644 => 100755 Pipfile.lock mode change 100644 => 100755 README.md mode change 100644 => 100755 ungleich_account.py mode change 100644 => 100755 ungleich_config.py mode change 100644 => 100755 ungleich_dns.py mode change 100644 => 100755 ungleich_ripe.py mode change 100644 => 100755 ungleich_ssh_key.py mode change 100644 => 100755 ungleich_vpn.py mode change 100644 => 100755 ungleich_weather.py create mode 100755 wg0.conf diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Pipfile b/Pipfile old mode 100644 new mode 100755 diff --git a/Pipfile.lock b/Pipfile.lock old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/ungleich_account.py b/ungleich_account.py old mode 100644 new mode 100755 diff --git a/ungleich_config.py b/ungleich_config.py old mode 100644 new mode 100755 diff --git a/ungleich_dns.py b/ungleich_dns.py old mode 100644 new mode 100755 diff --git a/ungleich_ripe.py b/ungleich_ripe.py old mode 100644 new mode 100755 diff --git a/ungleich_ssh_key.py b/ungleich_ssh_key.py old mode 100644 new mode 100755 diff --git a/ungleich_vpn.py b/ungleich_vpn.py old mode 100644 new mode 100755 index f64917b..f24e310 --- a/ungleich_vpn.py +++ b/ungleich_vpn.py @@ -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 diff --git a/ungleich_weather.py b/ungleich_weather.py old mode 100644 new mode 100755 diff --git a/wg0.conf b/wg0.conf new file mode 100755 index 0000000..dc09a2e --- /dev/null +++ b/wg0.conf @@ -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 +