Logging tidy-up, IDE inspection fixes

This commit is contained in:
Ian Renton
2026-08-15 07:42:38 +01:00
parent 9cd6d9c177
commit bff5b79f8f
40 changed files with 128 additions and 125 deletions
+2 -3
View File
@@ -1,4 +1,3 @@
import copy
import hashlib
import json
import logging
@@ -128,8 +127,8 @@ class Alert:
self.dx_names = list(
map(lambda c: get_call_info(c, credentials).name, self.dx_calls))
except Exception as e:
logging.error("Exception while inferring missing data from spot", e, exc_info=True)
except Exception:
logging.exception("Exception while inferring missing data from spot")
def to_json(self):
"""JSON serialise"""