Skip to content

Commit 2feb080

Browse files
acsanygahjelle
andauthored
Apply suggestions from code review
Co-authored-by: Geir Arne Hjelle <[email protected]>
1 parent 0fc30f4 commit 2feb080

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

python-logging/logging_stack_traces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
guests = 0
1414
try:
1515
donuts_per_guest = donuts / guests
16-
except ZeroDivisionError as _:
16+
except ZeroDivisionError:
1717
logging.error("DonutCalculationError", exc_info=True)

python-logging/logging_with_filter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ def show_only_debug(record):
2121
logger.addHandler(file_handler)
2222

2323
logger.debug("Just checking in!")
24-
25-
2624
logger.warning("Stay curious!")
2725
logger.error("Stay put!")

0 commit comments

Comments
 (0)