]> arthur.barton.de Git - bup.git/blobdiff - cmd/fsck-cmd.py
Use Python 3 compatible "except ... as e" syntax
[bup.git] / cmd / fsck-cmd.py
index a5ab754c131f1715f89e93a86111e10961718f9a..94eeb89f4ae52bb429a725a2d28fb080a59fb581 100755 (executable)
@@ -76,7 +76,7 @@ def git_verify(base):
     if opt.quick:
         try:
             quick_verify(base)
-        except Exception, e:
+        except Exception as e:
             debug('error: %s\n' % e)
             return 1
         return 0
@@ -201,7 +201,7 @@ for name in extra:
         else: # child
             try:
                 sys.exit(do_pack(base, last, par2_exists))
-            except Exception, e:
+            except Exception as e:
                 log('exception: %r\n' % e)
                 sys.exit(99)