Skip to content

Commit 1748ed4

Browse files
rubenvp8510burmanm
authored andcommitted
Remove reason concatenation on Exceptions that doesn't have reason attribute. (#53)
1 parent b1b20c4 commit 1748ed4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hawkular/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ def _handle_error(self, e):
289289
elif isinstance(e, KeyError):
290290
# Cast to HawkularMetricsStatusError
291291
ee = HawkularStatusError(e)
292-
ee.msg = "Error, unable to get implementation version for metrics: " + str(e.reason)
292+
ee.msg = "Error, unable to get implementation version for metrics: "
293293
raise ee
294294
elif isinstance(e, ValueError):
295295
# Cast to HawkularMetricsStatusError
296296
ee = HawkularStatusError(e)
297-
ee.msg = "Error, unable to determine implementation version for metrics: " + str(e.reason)
297+
ee.msg = "Error, unable to determine implementation version for metrics: "
298298
raise ee
299299
else:
300300
raise e

0 commit comments

Comments
 (0)