Mercurial > mozilla > hg > MozillaTry
changeset 29:ade4262c1c6d
oops, need an except clause
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 10 Dec 2012 12:11:45 -0800 |
parents | faacdfcd8ac9 |
children | 1a6125362640 |
files | mozillatry.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mozillatry.py Mon Dec 10 11:52:30 2012 -0800 +++ b/mozillatry.py Mon Dec 10 12:11:45 2012 -0800 @@ -9,6 +9,7 @@ import optparse import os import shutil +import subprocess import sys from subprocess import check_call as call @@ -26,6 +27,8 @@ # XXX stupid; see # https://wiki.mozilla.org/Build:TryServer#hg_phases call(['hg', 'phase', '-f', '--draft', 'qbase:tip'], cwd=directory) + except subprocess.CalledProcessError: + pass call(['hg', 'qpop', '--all'], cwd=directory) try: shutil.rmtree(os.path.join(hg_dir, 'patches')) # remove patches