Skip to content

Commit 4abccd5

Browse files
committed
formatting
1 parent 2c9a7ef commit 4abccd5

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pyadtpulse/pulse_query_manager.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,8 @@ def _handle_network_errors(self, e: Exception) -> None:
167167
str(e), self._connection_status.get_backoff()
168168
)
169169
if (
170-
(isinstance(e, ClientConnectionError)
171-
and "Connection refused" in str(e))
172-
or ("timed out") in str(e)
173-
):
170+
isinstance(e, ClientConnectionError) and "Connection refused" in str(e)
171+
) or ("timed out") in str(e):
174172
raise PulseServerConnectionError(
175173
str(e), self._connection_status.get_backoff()
176174
)

pyadtpulse/pyadtpulse_async.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,8 @@ async def _login_looped(self, task_name: str) -> None:
422422
ex.args[0],
423423
)
424424
if (
425-
(log_level == logging.WARNING
426-
and self._sync_check_exception is None)
427-
or self._sync_check_exception != ex
428-
):
425+
log_level == logging.WARNING and self._sync_check_exception is None
426+
) or self._sync_check_exception != ex:
429427
self._set_update_exception(ex)
430428
continue
431429
# success, return

0 commit comments

Comments
 (0)