Ignore unpaper warning message when checking version

Fixes #1409
This commit is contained in:
James R. Barlow
2024-10-27 13:06:30 -07:00
parent 706681deb8
commit 6f755321b8
2 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class UnpaperImageTooLargeError(Exception):
def version() -> Version:
return Version(get_version('unpaper'))
return Version(get_version('unpaper', regex=r'(?m).*(\d+(\.\d+)(\.\d+)?)'))
@contextmanager