Skip to content

Commit

Permalink
fix: on exception, return a 0, so that the "sum" still computes (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
petervandenabeele committed Feb 6, 2024
1 parent 6172dc0 commit a993626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipykernel/kernelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ def get_process_metric_value(self, process, name, attribute=None):
# Avoid littering logs with stack traces
# complaining about dead processes
except BaseException:
return None
return 0

async def usage_request(self, stream, ident, parent):
"""Handle a usage request."""
Expand Down

0 comments on commit a993626

Please sign in to comment.