Skip to content

Commit 4c437da

Browse files
echarlesCarreau
authored andcommitted
return a None value instead of 0 on exception
1 parent 4c47154 commit 4c437da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/kernelbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def get_process_metric_value(self, process, name, attribute=None):
876876
# Avoid littering logs with stack traces
877877
# complaining about dead processes
878878
except BaseException:
879-
return 0
879+
return None
880880

881881
async def usage_request(self, stream, ident, parent):
882882
reply_content = {}

0 commit comments

Comments
 (0)