mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56: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()
|
self._perform_checks()
|
||||||
return 0
|
return 0
|
||||||
except ArgumentTypeError as ex:
|
except ArgumentTypeError as ex:
|
||||||
print(ex.message)
|
str(ex)
|
||||||
return 1
|
return 1
|
||||||
except CheckFailedException as ex:
|
except CheckFailedException as ex:
|
||||||
print(ex.message)
|
str(ex)
|
||||||
return 2
|
return 2
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue