Skip to content

Commit 4195561

Browse files
authored
Merge pull request #3296 from plotly/unsafe-resource-access
Fix unsafe access of 'external_url' field
2 parents d6cbee8 + 533daf6 commit 4195561

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)