Commit cd57400f by Simon János

fix python 3 compatibility by using str(exc) instead of exc.message

parent 9c6303cc
Pipeline #285 passed with stage
in 32 seconds
...@@ -33,7 +33,7 @@ class Resource(object): ...@@ -33,7 +33,7 @@ class Resource(object):
try: try:
schema(attributes) schema(attributes)
except MultipleInvalid as invalid: except MultipleInvalid as invalid:
raise InvalidResourceException(invalid.message) raise InvalidResourceException(str(invalid))
@classmethod @classmethod
def __schema(cls, resource_type=None, extend=False): def __schema(cls, resource_type=None, extend=False):
......
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 sign in to comment