exception

This commit is contained in:
Lynn Ochs 2022-11-06 19:19:57 +01:00
parent 1ef8bd828c
commit 36ef03a0ac

View File

@ -45,7 +45,7 @@ class DoorControlNfc(util.Loggable):
else: else:
valid_thru = None valid_thru = None
except Exception: 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 valid_thru = None
self._logger().debug(f"Got token {token} associated with {name} <{email}> of {organization}, valid thru {valid_thru}") self._logger().debug(f"Got token {token} associated with {name} <{email}> of {organization}, valid thru {valid_thru}")
if token in valid: if token in valid: