From 71cf8d2d82f074f24addf70b01c42a85cd4aad5e Mon Sep 17 00:00:00 2001 From: Rnhmjoj Date: Wed, 3 Dec 2014 19:42:47 +0100 Subject: [PATCH] Fix python 3 except syntax --- pirate-get.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pirate-get.py b/pirate-get.py index 8f8bd9f..4251987 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -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 = ()