Skip to content
Commits on Source (2)
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, 03 May 2019 15:17:00 +0200
-- Alex ARNAUD <alexarnaud@hypra.fr> Thu, 09 May 2019 16:19:33 +0200
ocrizer (1.0.0) jessie; urgency=medium
......
......@@ -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 any scanner device"))
e.notification_message = _("Couldn't find any scanner device")
raise e
return chosen_dev
......