LowellObservatory / Ultimonitor

A job/print monitor for the Ultimaker 3 Extended (or any printer supporting that style API), that takes snapshots and emails about them as well as manages statistics gathering
Mozilla Public License 2.0
1 stars 0 forks source link

Account for network interruptions #2

Closed astrobokonon closed 4 years ago

astrobokonon commented 4 years ago

Printer was rebooted this morning, which caused an unhandled exception in this monitoring code because queries via apitools.queryChecker failed (and were handled) and returned empty dicts, which caused KeyError later when other bits tried to access the juicy information in them.

astrobokonon commented 4 years ago

a27169a5ee48f22ac78ed2ebfa6339c4103d4632 and 985b1b8515a8b80522acf8e98830c4fc31c148a8 are attempts to mitigate this; it's not pretty, but it's at least a start to make this thing more bullet proof.

astrobokonon commented 4 years ago

Took a few more commits (now thru 57418079587ed8f625af4176339a37f1c7a7e351) but I think I'm reaching the end?

astrobokonon commented 4 years ago

Code survived a power off of the printer, so I think we're good for now. Closing.