diff options
Diffstat (limited to 'coverage/context.py')
-rw-r--r-- | coverage/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/context.py b/coverage/context.py index 45e86a5c..43d2b1cc 100644 --- a/coverage/context.py +++ b/coverage/context.py @@ -48,7 +48,7 @@ def qualname_from_frame(frame): fname = co.co_name method = None if co.co_argcount and co.co_varnames[0] == "self": - self = frame.f_locals["self"] + self = frame.f_locals.get("self", None) method = getattr(self, fname, None) if method is None: |