Skip to content

Commit 7afe5c5

Browse files
Fix #2404 - avoid throwing on string config (#2405)
1 parent 7785e17 commit 7afe5c5

File tree

7 files changed

+34
-2
lines changed

7 files changed

+34
-2
lines changed

core/src/stdlib/pyscript.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/stdlib/pyscript/magic_js.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
config = json.loads(globalThis.JSON.stringify(_config))
1212

13+
if isinstance(config, str):
14+
config = {}
15+
1316
if "MicroPython" in sys.version:
1417
config["type"] = "mpy"
1518
else:

0 commit comments

Comments
 (0)