Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Merge pull request #98 from danielquinn/patch-1
Browse files Browse the repository at this point in the history
Use `str()` instead of `.message` for exception
  • Loading branch information
jflesch authored Apr 29, 2018
2 parents ecb07b5 + 23405f7 commit 31fb5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyocr/tesseract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 31fb5f1

Please sign in to comment.