flake8 delinting

This commit is contained in:
James R. Barlow
2021-09-21 16:37:03 -07:00
parent 9559f76fae
commit c725bf79da
16 changed files with 47 additions and 34 deletions
+2 -2
View File
@@ -96,12 +96,12 @@ def run(
try:
with Image.open(output_pnm) as imout:
imout.save(output_file, dpi=(dpi, dpi))
except (FileNotFoundError, OSError):
except OSError as e:
raise SubprocessOutputError(
"unpaper: failed to produce the expected output file. "
+ " Called with: "
+ str(args_unpaper)
) from None
) from e
def validate_custom_args(args: str) -> List[str]: