Cura plugin: Fix potential key error in error reporting
This commit is contained in:
1 parent
6323ce56ed
commit
797a5c8a5c
1 file changed
+1
-1
@@ -66,7 +66,7 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
|
||||
profile_dict = Profile.from_cura_ini(flask.request.values[input_upload_path])
|
||||
except Exception as e:
|
||||
self._logger.exception("Error while converting the imported profile")
|
||||
return flask.make_response("Something went wrong while converting imported profile: {message}".format(str(e)), 500)
|
||||
return flask.make_response("Something went wrong while converting imported profile: {message}".format(message=str(e)), 500)
|
||||
|
||||
else:
|
||||
self._logger.warn("No profile file included for importing, aborting")
|
||||
|
||||
Reference in new issue
Block a user