Skip to content

Commit

Permalink
No need to check for null file in the exception now.
Browse files Browse the repository at this point in the history
  • Loading branch information
thormj committed Jan 23, 2018
1 parent 9c2e522 commit b1ade05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions UIElements/gcodeCanvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ def reloadGcode(self, *args):
else:
self.data.zMoves.append(index)
except:
if filename is not "":
self.data.message_queue.put("Message: Cannot reopen gcode file. It may have been moved or deleted. To locate it or open a different file use Actions > Open G-code")
self.data.message_queue.put("Message: Cannot reopen gcode file. It may have been moved or deleted. To locate it or open a different file use Actions > Open G-code")
self.data.gcodeFile = ""

def centerCanvas(self, *args):
Expand Down

0 comments on commit b1ade05

Please sign in to comment.