Two ways to make python3 happy

python3 syntax
This commit is contained in:
scoobybejesus 2021-07-07 21:31:46 -04:00 committed by GitHub
parent 25e97a8b9b
commit aeb970f930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"]