Skip to content

Commit 464c33f

Browse files
author
Dan Lipsitt
committed
Remove deprecated use of Exception.message.
1 parent c4cb0ce commit 464c33f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

octoprint_netconnectd/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def on_api_get(self, request):
7272
wifis = self._get_wifi_list()
7373
status = self._get_status()
7474
except Exception as e:
75-
return jsonify(dict(error=e.message))
75+
return jsonify(dict(error=str(e)))
7676

7777
return jsonify(dict(
7878
wifis=wifis,
@@ -217,7 +217,7 @@ def _send_message(self, message, data):
217217
return False, output
218218

219219
except Exception as e:
220-
output = "Error while talking to netconnectd: {}".format(e.message)
220+
output = "Error while talking to netconnectd: {}".format(e)
221221
self._logger.warn(output)
222222
return False, output
223223

0 commit comments

Comments
 (0)