There was an error while loading. Please reload this page.
1 parent 262a2bb commit bf82b68Copy full SHA for bf82b68
lazy_loader/__init__.py
@@ -112,7 +112,7 @@ def __getattr__(self, x):
112
f"No module named '{fd['spec']}'\n\n"
113
"This error is lazily reported, having originally occured in\n"
114
f' File {fd["filename"]}, line {fd["lineno"]}, in {fd["function"]}\n\n'
115
- f'----> {"".join(fd["code_context"]).strip()}'
+ f'----> {"".join(fd["code_context"] or "").strip()}'
116
)
117
118
0 commit comments