Cura plugin: Fix potential key error in error reporting
This commit is contained in:
parent
6323ce56ed
commit
797a5c8a5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue