Skip to content

Commit d36a9f1

Browse files
authored
Merge pull request #60 from SimplyPrint/59-file_progress-error-report
Fix for #59; file progress error report
2 parents 96a2d85 + 9ca0987 commit d36a9f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

octoprint_simplyprint/websocket/file_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _download_sp_file(self, url: str, start: bool):
150150
self._logger.exception("Error downloading print")
151151
self._loop.add_callback(
152152
self.socket.send_sp, "file_progress",
153-
{"state": "error", "message": "Network Error", "exception": e}
153+
{"state": "error", "message": "Network Error", "exception": str(e)}
154154
)
155155
return
156156
local = FileDestinations.LOCAL
@@ -182,7 +182,7 @@ def _download_sp_file(self, url: str, start: bool):
182182
self._logger.exception("Error locating file destination")
183183
self._loop.add_callback(
184184
self.socket.send_sp, "file_progress",
185-
{"state": "error", "message": "Error processing download", "exception": e}
185+
{"state": "error", "message": "Error processing download: " + str(e)}
186186
)
187187
return
188188
else:

0 commit comments

Comments
 (0)