make sure retcode is defined.

This commit is contained in:
Jelmer Vernooij 2021-03-17 17:16:25 +00:00
parent ba8f6d442c
commit 65612f8234

View file

@ -71,6 +71,7 @@ def run_with_build_fixers(session: Session, args: List[str], fixers: List[BuildF
retcode, contents = run_with_tee(session, args) retcode, contents = run_with_tee(session, args)
except FileNotFoundError as e: except FileNotFoundError as e:
error = MissingCommand(e.args[0]) error = MissingCommand(e.args[0])
retcode = 1
else: else:
if retcode == 0: if retcode == 0:
return return