Fix last wrong fix
1 files changed, 2 insertions(+), 2 deletions(-) M release.py
M release.py +2 -2
@@ 2,7 2,7 @@ import json import os from pathlib import Path -from subprocess import check_output +from subprocess import CalledProcessError, check_output from sys import stderr from zipfile import ZipFile @@ 15,7 15,7 @@ if check_output(['hg', 'stat']): exit(1) try: check_output(['hg', 'push']) -except subprocess.CalledProcessError as e: +except CalledProcessError as e: # exit code 1 = nothing to push if e.returncode != 1: raise