From 3f8a3cb7158fbc0daf2cd6bc2796732eb776efc8 Mon Sep 17 00:00:00 2001 From: Auke Klazema <klazema@astron.nl> Date: Mon, 25 Mar 2019 11:00:11 +0000 Subject: [PATCH] SW-609: Fix Exception.message issue in mapi.py and mapi2.py --- CEP/GSM/bremen/monetdb_client/mapi.py | 2 +- CEP/GSM/bremen/monetdb_client/mapi2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CEP/GSM/bremen/monetdb_client/mapi.py b/CEP/GSM/bremen/monetdb_client/mapi.py index c63b0448160..2006f8560ac 100644 --- a/CEP/GSM/bremen/monetdb_client/mapi.py +++ b/CEP/GSM/bremen/monetdb_client/mapi.py @@ -186,7 +186,7 @@ class Connection(object): h.update(password) password = h.hexdigest() except ValueError as e: - raise NotSupportedError(e.message) + raise NotSupportedError(str(e)) else: raise NotSupportedError("We only speak protocol v9") diff --git a/CEP/GSM/bremen/monetdb_client/mapi2.py b/CEP/GSM/bremen/monetdb_client/mapi2.py index a6c5246d577..d56f2d91cfc 100644 --- a/CEP/GSM/bremen/monetdb_client/mapi2.py +++ b/CEP/GSM/bremen/monetdb_client/mapi2.py @@ -187,7 +187,7 @@ class Server: h.update(password) password = h.hexdigest() except ValueError as e: - raise NotSupportedError(e.message) + raise NotSupportedError(str(e)) elif protocol != "8": raise NotSupportedError("We only speak protocol v8 and v9") -- GitLab