BlueManCZ / SIF

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

fix crash when appid not found in manifest #25

Closed Darkhogg closed 2 years ago

Darkhogg commented 2 years 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 2 years ago

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

Darkhogg commented 2 years 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.