Reduce severity of the messages displayed when no OCR backend is found for a language

This commit is contained in:
Roberto Rosario
2011-11-06 01:06:43 -04:00
parent b2d2449e22
commit f0c019f6fc

View File

@@ -31,7 +31,7 @@ def get_language_backend():
try: try:
module = import_module(u'.'.join([u'ocr', u'lang', TESSERACT_LANGUAGE])) module = import_module(u'.'.join([u'ocr', u'lang', TESSERACT_LANGUAGE]))
except ImportError: except ImportError:
sys.stderr.write(u'\nError: No OCR app language backend for language: %s\n\n' % TESSERACT_LANGUAGE) sys.stderr.write(u'\nWarning: No OCR app language backend for language: %s\n\n' % TESSERACT_LANGUAGE)
return None return None
return module return module