Skip to content

Commit 533daf6

Browse files
committed
Fix unsafe access of 'external_url' field
1 parent d6cbee8 commit 533daf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dash/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _filter_resources(
9696
warnings.warn(
9797
(
9898
"You have set your config to `serve_locally=True` but "
99-
f"A local version of {s['external_url']} is not available.\n" # type: ignore
99+
f"A local version of {s.get('external_url', '')} is not available.\n" # type: ignore
100100
"If you added this file with "
101101
"`app.scripts.append_script` "
102102
"or `app.css.append_css`, use `external_scripts` "

0 commit comments

Comments
 (0)