소스 검색

Python 3 compatible exceptions.

Dan Helfman 10 년 전
부모
커밋
d311e90792
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)