diff --git a/coverage/pytracer.py b/coverage/pytracer.py index 94427d691..6723c2a1b 100644 --- a/coverage/pytracer.py +++ b/coverage/pytracer.py @@ -142,7 +142,12 @@ def _trace( self.data_stack.pop() ) except IndexError: - self.log("Empty stack!", frame.f_code.co_filename, frame.f_lineno, frame.f_code.co_name) + self.log( + "Empty stack!", + frame.f_code.co_filename, + frame.f_lineno, + frame.f_code.co_name + ) return None # if event != 'call' and frame.f_code.co_filename != self.cur_file_name: