Skip to content
GitLab
Explore
Sign in
Register
Hypra
ocrizer
Compare revisions
868ab1b2c3e51c73128744c263b659e9f42189f2 to e2eb00cd788a48331756b9878e77903de08080b2
Commits on Source (2)
When no scanner is found a simpler error is now reported to the
· a47382b8
Alex ARNAUD
authored
May 09, 2019
user, we report now "Couldn't find an obvious scanner device"
a47382b8
releasing version 1.0.1
· e2eb00cd
Alex ARNAUD
authored
May 09, 2019
e2eb00cd
Hide whitespace changes
Inline
Side-by-side
debian/changelog
View file @
e2eb00cd
ocrizer (1.0.1)
UNRELEASED
; urgency=medium
ocrizer (1.0.1)
jessie
; urgency=medium
* ocrizer.py: create the class OcrizerException to report exceptions
to users
* ocrizer.py: report to the user when no device is found to avoid him
to wait indefinitely
* When no scanner is found a simpler error is now reported to the
user, we report now "Couldn't find an obvious scanner device"
-- Alex ARNAUD <alexarnaud@hypra.fr>
Fri
, 0
3
May 2019 1
5
:1
7:00
+0200
-- Alex ARNAUD <alexarnaud@hypra.fr>
Thu
, 0
9
May 2019 1
6
:1
9:33
+0200
ocrizer (1.0.0) jessie; urgency=medium
...
...
usr/lib/python3/dist-packages/ocrize/ocrize.py
View file @
e2eb00cd
...
...
@@ -179,8 +179,8 @@ class OCRizer():
e
.
notification_message
=
_
(
"
Couldn
'
t find any scanner device
"
)
raise
e
else
:
e
=
OcrizerException
(
_
(
"
Couldn
'
t find an
obvious
scanner device
"
))
e
.
notification_message
=
_
(
"
Couldn
'
t find an
obvious
scanner device
"
)
e
=
OcrizerException
(
_
(
"
Couldn
'
t find an
y
scanner device
"
))
e
.
notification_message
=
_
(
"
Couldn
'
t find an
y
scanner device
"
)
raise
e
return
chosen_dev
...
...