X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=main.py;h=b149bbad76cbe49643792a6cf50be58864eb492e;hp=ef229571714926cfb41b09f0448d94e595e628e9;hb=febb15487a47669374810622481ead399728d861;hpb=7caa0310905315f221b0c2cce4abb49317038f13 diff --git a/main.py b/main.py index ef22957..b149bba 100755 --- a/main.py +++ b/main.py @@ -80,7 +80,7 @@ if len(argv) < 2: try: optspec = ['help', 'version', 'debug', 'profile', 'bup-dir='] global_args, subcmd = getopt.getopt(argv[1:], '?VDd:', optspec) -except getopt.GetoptError, ex: +except getopt.GetoptError as ex: usage('error: %s' % ex.msg) help_requested = None @@ -195,7 +195,7 @@ try: ret = p.wait() forward_signals = False break - except OSError, e: + except OSError as e: log('%s: %s\n' % (subcmd[0], e)) ret = 98 finally: