Explorar o código

service_api: suppress traceback for ServiceAuthError in _gather

ZiB hai 4 meses
pai
achega
440fe545fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      room_cal/service_api/client.py

+ 1 - 1
room_cal/service_api/client.py

@@ -116,7 +116,7 @@ class ServiceAPI:
     out: dict[str, object] = {}
     for key, result in zip(keys, raw):
       if isinstance(result, BaseException):
-        _log.error('service %s error (skipping): %s', key, result, exc_info=result)
+        _log.error('service %s error (skipping): %s', key, result, exc_info=not isinstance(result, ServiceAuthError))
         out[key] = None
       else:
         out[key] = result