thijsbekke / OctoPrint-Pushover

A Pushover plugin for OctoPrint
GNU General Public License v3.0
32 stars 21 forks source link

TypeError: type NoneType doesn't define __round__ method #70

Open ThomasCr opened 1 year ago

ThomasCr commented 1 year ago

I am using current stabe plugin 0.3.8 and OctoPrint 1.8.4 with Python 3.10 at Ubuntu 22.04 The follow error was spotted on the logfile after restarting Octoprint

Oct 10 11:01:38 octopi octoprint[14078]: Traceback (most recent call last):
Oct 10 11:01:38 octopi octoprint[14078]:   File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
Oct 10 11:01:38 octopi octoprint[14078]:     self.run()
Oct 10 11:01:38 octopi octoprint[14078]:   File "/opt/octoprint/lib/python3.10/site-packages/sentry_sdk/integrations/threading.py", line 69, in run
Oct 10 11:01:38 octopi octoprint[14078]:     reraise(*_capture_exception())
Oct 10 11:01:38 octopi octoprint[14078]:   File "/opt/octoprint/lib/python3.10/site-packages/sentry_sdk/_compat.py", line 56, in reraise
Oct 10 11:01:38 octopi octoprint[14078]:     raise value
Oct 10 11:01:38 octopi octoprint[14078]:   File "/opt/octoprint/lib/python3.10/site-packages/sentry_sdk/integrations/threading.py", line 67, in run
Oct 10 11:01:38 octopi octoprint[14078]:     return old_run_func(self, *a, **kw)
Oct 10 11:01:38 octopi octoprint[14078]:   File "/opt/octoprint/lib/python3.10/site-packages/octoprint/util/__init__.py", line 1291, in run
Oct 10 11:01:38 octopi octoprint[14078]:     self.function(*self.args, **self.kwargs)
Oct 10 11:01:38 octopi octoprint[14078]:   File "/opt/octoprint/lib/python3.10/site-packages/octoprint_pushover/__init__.py", line 192, in temp_check
Oct 10 11:01:38 octopi octoprint[14078]:     bed_temp = round(temps['bed']['actual']) if 'bed' in temps else 0
Oct 10 11:01:38 octopi octoprint[14078]: TypeError: type NoneType doesn't define __round__ method