BlueManCZ / SIF

:video_game: Steam Icons Fixer - Fix runtime icons of Steam games on Linux.
Apache License 2.0
46 stars 3 forks source link

fix crash when appid not found in manifest #25

Closed Darkhogg closed 1 year ago

Darkhogg commented 1 year ago

fixes this crash

Traceback (most recent call last):
  File "/usr/bin/sif", line 524, in <module>
    sorted(
  File "/usr/bin/sif", line 525, in <lambda>
    get_installed_games(library_folders).items(), key=lambda item: int(item[0])
ValueError: invalid literal for int() with base 10: ''
BlueManCZ commented 1 year ago

Nice catch, thank you. What file/game is causing this in your case?

Darkhogg commented 1 year ago

There was a bunch, some of them looked like temporary stuff left there by some process, some looked like actual legit games, but there were so many I didn't stop to check which ones were giving me trouble.