Skip to content

Commit

Permalink
fix error found in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
CoDanny committed Sep 30, 2020
1 parent 468b5f3 commit ba55f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_astroprint/printerlistener/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def set_job_data(self, data):
if data['file']['name'] and data['file']['size']:
renderedImage = None
cloudId = None
if data['file']['origin'] == 'local':
if self.astroprintCloud and data['file']['origin'] == 'local':
cloudPrintFile = self.astroprintCloud.db.getPrintFileByOctoPrintPath(data['file']['path'])
if cloudPrintFile:
renderedImage = cloudPrintFile.renderedImage
Expand Down

0 comments on commit ba55f1d

Please sign in to comment.