Skip to content

Commit

Permalink
Merge pull request #1487 from sbrunner/fix
Browse files Browse the repository at this point in the history
Add missing proc.communicate
  • Loading branch information
sbrunner authored Jan 25, 2025
2 parents b723e33 + 3387161 commit 94e29b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scan_to_paperless/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ async def _histogram(
if not jupyter_utils.is_ipython():
plt.savefig(file.name)
proc = await asyncio.create_subprocess_exec("gm", "convert", "-flatten", file.name, file.name) # nosec
await proc.communicate()
assert proc.returncode == 0
image = cv2.imread(file.name)
context.save_progress_images(
Expand Down

0 comments on commit 94e29b5

Please sign in to comment.