Fixed a typo breaking slicing altogether

This commit is contained in:
Gina Häußge 2014-10-21 15:03:36 +02:00
parent b7a21dd322
commit 776e6aa498

View file

@ -311,7 +311,7 @@ def gcodeFileCommand(filename, target):
if not octoprint.filemanager.valid_file_type(filename, type="stl"):
return make_response("Cannot slice {filename}, not an STL file".format(**locals()), 415)
if slicer_instance.get_slicer_properties()["same_device"] and (printer.isPrinting or printer.isPaused()):
if slicer_instance.get_slicer_properties()["same_device"] and (printer.isPrinting() or printer.isPaused()):
# slicer runs on same device as OctoPrint, slicing while printing is hence disabled
return make_response("Cannot slice on {slicer} while printing due to performance reasons".format(**locals()), 409)