File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def bytecode_nameof(code: CodeType, offset: int) -> str:
236236
raise pos_only_error
237237

238238
if current_instruction.opname not in ("CALL_FUNCTION", "CALL_METHOD", "CALL"):
239-
raise VarnameRetrievingError("Did you call 'nameof' in a weird way? " + str(current_instruction))
239+
raise VarnameRetrievingError("Did you call 'nameof' in a weird way?")
240240

241241
current_instruction_index -= 1
242242
name_instruction = instructions[current_instruction_index]

0 commit comments

Comments
 (0)