From 38c5a5fc233d887c8ea33615bf8d9eb16d769700 Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 11 Dec 2024 11:22:07 +0000 Subject: probably fix exception handling --- scan.py | 4 ++-- 1 file 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() -- cgit v1.2.3