aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-12-11 11:22:07 +0000
committerdakkar <dakkar@thenautilus.net>2024-12-11 11:22:07 +0000
commit38c5a5fc233d887c8ea33615bf8d9eb16d769700 (patch)
tree6dd40b9e7b13a3dff13f9daf44e64b917372c2e3
parenttry to trap errors (diff)
downloadats-therm-38c5a5fc233d887c8ea33615bf8d9eb16d769700.tar.gz
ats-therm-38c5a5fc233d887c8ea33615bf8d9eb16d769700.tar.bz2
ats-therm-38c5a5fc233d887c8ea33615bf8d9eb16d769700.zip
probably fix exception handling
-rwxr-xr-xscan.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scan.py b/scan.py
index b55526c..b39e105 100755
--- a/scan.py
+++ b/scan.py
@@ -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()