mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
using str(ex) instead of print(ex.message) for python 3 compatibility
This commit is contained in:
parent
e70e7c8bba
commit
3232c22bdf
1 changed files with 2 additions and 2 deletions
|
|
@ -25,10 +25,10 @@ class CheckerTemplateMethod(object):
|
|||
self._perform_checks()
|
||||
return 0
|
||||
except ArgumentTypeError as ex:
|
||||
print(ex.message)
|
||||
str(ex)
|
||||
return 1
|
||||
except CheckFailedException as ex:
|
||||
print(ex.message)
|
||||
str(ex)
|
||||
return 2
|
||||
|
||||
@abstractmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue