From d311e90792d3f28b744187f83787977c6fb0e273 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 1 Dec 2014 20:23:29 -0800 Subject: [PATCH] Python 3 compatible exceptions. --- atticmatic/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atticmatic/command.py b/atticmatic/command.py index ebfdda3..1466c30 100644 --- a/atticmatic/command.py +++ b/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)