From 36ef03a0aca4b96b83fead50939b79e207cba721 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sun, 6 Nov 2022 19:19:57 +0100 Subject: [PATCH] exception --- door_pi_control/nfc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/door_pi_control/nfc.py b/door_pi_control/nfc.py index cf4caf1..3652927 100644 --- a/door_pi_control/nfc.py +++ b/door_pi_control/nfc.py @@ -45,7 +45,7 @@ class DoorControlNfc(util.Loggable): else: valid_thru = None except Exception: - self._logger().error(f"Could not parse valid thru date for token {token} in line {i}") + self._logger().exception(f"Could not parse valid thru date {valid_thru} for token {token} in line {i+1}") valid_thru = None self._logger().debug(f"Got token {token} associated with {name} <{email}> of {organization}, valid thru {valid_thru}") if token in valid: