Skip to content

Commit

Permalink
change for image with new octoprint version
Browse files Browse the repository at this point in the history
  • Loading branch information
giloser committed Mar 11, 2020
1 parent dfde114 commit 8423f89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion octoprint_telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,9 +1168,12 @@ def _send_msg(self, message="", with_image=False,with_gif=False,responses=None,
self._logger.info("Caught an exception trying take image: " + str(ex))

self._logger.debug("data so far: " + str(data))
if with_image:
self._logger.debug("image data so far: " + str(image_data))

if not image_data and with_image:
if (not image_data or 'html' in image_data) and with_image:
message = "[ERR GET IMAGE]\n\n" + message
image_data = None

r = None

Expand Down

0 comments on commit 8423f89

Please sign in to comment.