70👍
✅
I believe the problem is that list
is a pdb debugger command. The documentation states the following:
Commands that the debugger doesn’t recognize are assumed to be Python
statements and are executed in the context of the program being
debugged. Python statements can also be prefixed with an exclamation
point (!).
So you could try to prefix list
like so:
!list(error['extras'].keys())
Source:stackexchange.com