Skip to content

Commit

Permalink
The world is not ready for :=
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Jan 26, 2022
1 parent aea1862 commit 3dfde47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ocrmypdf/_exec/ghostscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def __call__(self, line):
if not self.progressbar_class:
return
if not self.progressbar:
if m := self.re_process.match(line.strip()):
m = self.re_process.match(line.strip())
if m:
self.count = int(m.group(1))
self.progressbar = self.progressbar_class(
total=self.count, desc="PDF/A conversion", unit='page'
Expand Down

0 comments on commit 3dfde47

Please sign in to comment.