Commit 31fb5f14 authored by Jerome Flesch's avatar Jerome Flesch Committed by GitHub

Merge pull request #98 from danielquinn/patch-1

Use `str()` instead of `.message` for exception
parents ecb07b5c 23405f73
......@@ -221,7 +221,7 @@ def detect_orientation(image, lang=None):
except Exception as ex:
raise TesseractError(-1, "No script found in image (%s - %s)"
% (ex.message, original_output))
% (str(ex), original_output))
def get_name():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment