Skip to content

Commit 7d14d14

Browse files
committed
Update get_game_title
- See #262
1 parent e7b9696 commit 7d14d14

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fix.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@ def get_game_title(pfx: str, database: str) -> str:
5454
os.path.join(pfx, 'game_title'), 'w', encoding='utf-8'
5555
) as file:
5656
file.write(row[0])
57-
title = row[0]
58-
break
57+
return row[0]
5958
except FileNotFoundError:
6059
log.warn(f'CSV file not found: {database}')
6160
except Exception as ex:
6261
log.debug(f'Error reading CSV file: {ex}')
6362

64-
if title=='UNKNOWN':
65-
log.warn('Game title not found in CSV')
63+
log.warn('Game title not found in CSV')
6664

6765
return title
6866

0 commit comments

Comments
 (0)