Skip to content

Commit

Permalink
remove unnecessary env arg in Popen
Browse files Browse the repository at this point in the history
  • Loading branch information
JensPfeifle committed Mar 3, 2019
1 parent 0220199 commit 50504c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/paperless_tesseract/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ def get_thumbnail(self):

# https://github.com/danielquinn/paperless/issues/447
# call gs first
environment = os.environ.copy()
cmd = ["gs", "-q", "-sDEVICE=pngalpha",
"-o", gs_out_path, self.document_path]
if not subprocess.Popen(cmd, env=environment).wait() == 0:
if not subprocess.Popen(cmd).wait() == 0:
raise ParseError("Thumbnail (gs) failed at {}".format(cmd))
# then run convert on the output from gs
run_convert(
Expand Down

0 comments on commit 50504c3

Please sign in to comment.