From 930eed450080c9b8647366500573d676d1c25db0 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Fri, 14 Aug 2020 15:20:36 +0200 Subject: [PATCH] Fix ingress unbound local errors (#1915) --- supervisor/ingress.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervisor/ingress.py b/supervisor/ingress.py index 6a64fdac5..0ace576c7 100644 --- a/supervisor/ingress.py +++ b/supervisor/ingress.py @@ -77,7 +77,7 @@ class Ingress(JsonConfig, CoreSysAttributes): try: valid_dt = utc_from_timestamp(valid) except OverflowError: - _LOGGER.warning("Session timestamp %f is invalid!", valid_dt) + _LOGGER.warning("Session timestamp %f is invalid!", valid) continue if valid_dt < now: @@ -115,7 +115,7 @@ class Ingress(JsonConfig, CoreSysAttributes): try: valid_until = utc_from_timestamp(self.sessions[session]) except OverflowError: - _LOGGER.warning("Session timestamp %f is invalid!", valid_until) + _LOGGER.warning("Session timestamp %f is invalid!", self.sessions[session]) return False # Is still valid?