Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjastrzabek-roche committed Aug 19, 2022
1 parent 16fa0e4 commit 150bb1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/foxops/external/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def diff(self, ref_old: str, ref_new: str) -> str:
)
stdout, stderr = await proc.communicate()

if proc.returncode not in {0, 1}:
if proc.returncode is not None and proc.returncode not in {0, 1}:
raise CalledProcessError(
int(proc.returncode),
cmdline,
Expand Down

0 comments on commit 150bb1b

Please sign in to comment.