diff options
author | dakkar <dakkar@thenautilus.net> | 2024-12-11 11:22:07 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2024-12-11 11:22:07 +0000 |
commit | 38c5a5fc233d887c8ea33615bf8d9eb16d769700 (patch) | |
tree | 6dd40b9e7b13a3dff13f9daf44e64b917372c2e3 | |
parent | try to trap errors (diff) | |
download | ats-therm-38c5a5fc233d887c8ea33615bf8d9eb16d769700.tar.gz ats-therm-38c5a5fc233d887c8ea33615bf8d9eb16d769700.tar.bz2 ats-therm-38c5a5fc233d887c8ea33615bf8d9eb16d769700.zip |
probably fix exception handling
-rwxr-xr-x | scan.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,9 +29,9 @@ class Prom: output = output + "therm_{0}{{mac=\"{1}\"}} {2:f}\n".format( field, mac, self.collected[mac][field][0] ) - except E: + except: output = output + "# therm_{0}{{mac=\"{1}\"}} {2}\n".format( - field, mac, E + field, mac, sys.exception() ) headers = HttpHeaders() |