1
0
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:
Rnhmjoj 2014-12-03 19:42:47 +01:00
parent c817681748
commit 71cf8d2d82

View File

@ -282,7 +282,7 @@ def main():
print("Trying " + mirror) print("Trying " + mirror)
mags, sizes, uploaded, identifiers = remote(args, mirror) mags, sizes, uploaded, identifiers = remote(args, mirror)
break break
except Exception, e: except Exception as e:
print(format(e)) print(format(e))
print("Could not contact " + mirror, color="WARN") print("Could not contact " + mirror, color="WARN")
@ -417,7 +417,7 @@ def main():
continue continue
else: else:
break break
except Exception, e: except Exception as e:
print('Exception:') print('Exception:')
print(str(e)) print(str(e))
choices = () choices = ()