Spaces:
Runtime error
Runtime error
fix: patch config when dataset exists but is empty
Browse filesWhen the dataset repo is newly created and has no .openclaw/ folder,
_patch_config() was not called, leaving password/model placeholders
unresolved. Now properly patches config in this code path.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- scripts/sync_hf.py +1 -0
scripts/sync_hf.py
CHANGED
|
@@ -172,6 +172,7 @@ class OpenClawFullSync:
|
|
| 172 |
if not openclaw_files:
|
| 173 |
print(f"[SYNC] No {DATASET_PATH}/ folder in dataset. Starting fresh.")
|
| 174 |
self._ensure_default_config()
|
|
|
|
| 175 |
return
|
| 176 |
|
| 177 |
print(f"[SYNC] Found {len(openclaw_files)} files under {DATASET_PATH}/ in dataset")
|
|
|
|
| 172 |
if not openclaw_files:
|
| 173 |
print(f"[SYNC] No {DATASET_PATH}/ folder in dataset. Starting fresh.")
|
| 174 |
self._ensure_default_config()
|
| 175 |
+
self._patch_config()
|
| 176 |
return
|
| 177 |
|
| 178 |
print(f"[SYNC] Found {len(openclaw_files)} files under {DATASET_PATH}/ in dataset")
|