Skip to content

Commit 43d6418

Browse files
author
TJ Bruno
committed
Satisfy pylint linter
1 parent 0d8e0a6 commit 43d6418

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

can/bus.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ def shutdown(self) -> None:
422422
in shutting down a bus.
423423
"""
424424
if self._is_shutdown:
425-
LOG.debug(f"{self.__class__} is already shut down")
426-
return None
425+
LOG.debug("%s is already shut down", self.__class__)
426+
return
427427

428428
self.stop_all_periodic_tasks()
429429
self._is_shutdown = True
@@ -436,10 +436,10 @@ def __exit__(self, exc_type, exc_val, exc_tb):
436436

437437
def __del__(self) -> None:
438438
if self._is_shutdown:
439-
return None
439+
return
440440

441441
self.shutdown()
442-
LOG.warn(f"{self.__class__} was not properly shut down")
442+
LOG.warning("%s was not properly shut down", self.__class__)
443443

444444
@property
445445
def state(self) -> BusState:

0 commit comments

Comments
 (0)