DOC Fix typo in format_exception example (#3005)

This commit is contained in:
Patrick Arminio 2022-08-23 05:52:37 +01:00 committed by GitHub
parent b4433e1b4a
commit f864eee8b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ def reformat_exception():
# Format a modified exception here
# this just prints it normally but you could for instance filter some frames
return "".join(
traceback.format_exception(sys.last_type, sys.last_value, sys.last_traceback)
format_exception(sys.last_type, sys.last_value, sys.last_traceback)
)
`);
let reformat_exception = pyodide.globals.get("reformat_exception");