Skip to content
Snippets Groups Projects
Commit 3f8a3cb7 authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Fix Exception.message issue in mapi.py and mapi2.py

parent 7f78cb5b
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ class Connection(object): ...@@ -186,7 +186,7 @@ class Connection(object):
h.update(password) h.update(password)
password = h.hexdigest() password = h.hexdigest()
except ValueError as e: except ValueError as e:
raise NotSupportedError(e.message) raise NotSupportedError(str(e))
else: else:
raise NotSupportedError("We only speak protocol v9") raise NotSupportedError("We only speak protocol v9")
......
...@@ -187,7 +187,7 @@ class Server: ...@@ -187,7 +187,7 @@ class Server:
h.update(password) h.update(password)
password = h.hexdigest() password = h.hexdigest()
except ValueError as e: except ValueError as e:
raise NotSupportedError(e.message) raise NotSupportedError(str(e))
elif protocol != "8": elif protocol != "8":
raise NotSupportedError("We only speak protocol v8 and v9") raise NotSupportedError("We only speak protocol v8 and v9")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment