Explorar o código

Python 3 compatible exceptions.

Dan Helfman %!s(int64=10) %!d(string=hai) anos
pai
achega
d311e90792
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      atticmatic/command.py

+ 1 - 1
atticmatic/command.py

@@ -33,6 +33,6 @@ def main():
 
         create_archive(args.excludes_filename, args.verbose, *location_config)
         prune_archives(location_config.repository, args.verbose, *retention_config)
-    except (ValueError, CalledProcessError), error:
+    except (ValueError, CalledProcessError) as error:
         print(error, file=sys.stderr)
         sys.exit(1)