From aeb970f93023e4a426d02790c10c9422aa5243c4 Mon Sep 17 00:00:00 2001 From: scoobybejesus <21372487+scoobybejesus@users.noreply.github.com> Date: Wed, 7 Jul 2021 21:31:46 -0400 Subject: [PATCH] Two ways to make python3 happy python3 syntax --- network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network.py b/network.py index cd995e5..183f2a1 100644 --- a/network.py +++ b/network.py @@ -20,7 +20,7 @@ def fork(bot, trigger): try: r=requests.get(networkurl) j=r.json() - except Exception,e: + except Exception as e: pass try: height=j["height"] @@ -37,7 +37,7 @@ def network(bot, trigger): try: r=requests.get(networkurl) j=r.json() - except Exception,e: + except: pass try: height=j["height"]