We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359b90d commit 156485eCopy full SHA for 156485e
scripts/sync_db.py
@@ -16,7 +16,7 @@
16
# Those should point to the "entries" subfolder of a "Homebrew Hub database"
17
# e.g.: https://github.com/gbdev/database or https://github.com/gbadev-org/games
18
19
-basefolder = "db-sources/"
+basefolder = "db-sources"
20
21
dirs = [
22
"database-gb/entries",
@@ -61,7 +61,11 @@ def run():
61
folder = f"{basefolder}/{database_folder}"
62
d += 1
63
print(f"Processing folder {folder}")
64
- games = os.listdir(folder)
+ try:
65
+ games = os.listdir(folder)
66
+ except FileNotFoundError:
67
+ print("Folder not found, skipping it")
68
+ continue
69
70
games_count = len(games)
71
print(f"Found {games_count} games")
0 commit comments