mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
Fix python 3 except syntax
This commit is contained in:
parent
c817681748
commit
71cf8d2d82
@ -282,7 +282,7 @@ def main():
|
||||
print("Trying " + mirror)
|
||||
mags, sizes, uploaded, identifiers = remote(args, mirror)
|
||||
break
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
print(format(e))
|
||||
print("Could not contact " + mirror, color="WARN")
|
||||
|
||||
@ -417,7 +417,7 @@ def main():
|
||||
continue
|
||||
else:
|
||||
break
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
print('Exception:')
|
||||
print(str(e))
|
||||
choices = ()
|
||||
|
Loading…
Reference in New Issue
Block a user