Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -252,7 +252,7 @@ def _load_block_catalog(block_type: str) -> Dict:
|
|
| 252 |
Loads the Scratch block catalog named '{block_type}_blocks.json'
|
| 253 |
from the <project_root>/blocks/ folder. Returns {} on any error.
|
| 254 |
"""
|
| 255 |
-
catalog_path = BLOCKS_DIR / f"{block_type}
|
| 256 |
|
| 257 |
try:
|
| 258 |
text = catalog_path.read_text() # will raise FileNotFoundError if missing
|
|
|
|
| 252 |
Loads the Scratch block catalog named '{block_type}_blocks.json'
|
| 253 |
from the <project_root>/blocks/ folder. Returns {} on any error.
|
| 254 |
"""
|
| 255 |
+
catalog_path = BLOCKS_DIR / f"{block_type}.json"
|
| 256 |
|
| 257 |
try:
|
| 258 |
text = catalog_path.read_text() # will raise FileNotFoundError if missing
|