Skip to content

Commit 134605a

Browse files
committed
apply black
1 parent dcf122e commit 134605a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

adafruit_logging.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,8 @@ def _level_for(value: int) -> str:
140140
- ``args`` - The additional positional arguments provided
141141
"""
142142

143+
# Whether to print exceptions caught during handler's emit().
143144
printHandlerExceptions = True
144-
"""
145-
Whether to print exceptions caught during handler's emit().
146-
"""
147145

148146

149147
def _logRecordFactory(name, level, msg, args):
@@ -347,8 +345,9 @@ def handle(self, record: LogRecord) -> None:
347345
handler.emit(record)
348346
except Exception as e: # pylint: disable=broad-except
349347
if sys.stderr and printHandlerExceptions:
350-
sys.stderr.write(f"Handler {repr(handler)} produced exception: "
351-
f"{str(e)}\n")
348+
sys.stderr.write(
349+
f"Handler {handler} produced exception: {e}\n"
350+
)
352351

353352
def log(self, level: int, msg: str, *args) -> None:
354353
"""Log a message.

0 commit comments

Comments
 (0)