We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e1f9a commit a422dd7Copy full SHA for a422dd7
sentry_sdk/profiler.py
@@ -347,7 +347,7 @@ def get_frame_name(frame):
347
for cls in frame.f_locals["self"].__class__.__mro__:
348
if name in cls.__dict__:
349
return "{}.{}".format(cls.__name__, name)
350
- except AttributeError:
+ except (AttributeError, ValueError):
351
pass
352
353
# if it was a class method, (decorated with `@classmethod`)
@@ -363,7 +363,7 @@ def get_frame_name(frame):
363
for cls in frame.f_locals["cls"].__mro__:
364
365
366
367
368
369
# nothing we can do if it is a staticmethod (decorated with @staticmethod)
0 commit comments