jaydenmilne / steamsync

Tool to automatically add games from the Epic Games Launcher to Steam
GNU Affero General Public License v3.0
157 stars 17 forks source link

max() arg is an empty sequence exception failure #4

Closed SecondReality closed 3 years ago

SecondReality commented 3 years ago

It does not work, seemingly due to an exception.

Command used: steamsync.py --all

9 games were found.

Traceback (most recent call last): File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\Scripts\steamsync.py", line 437, in <module> add_games_to_shortcut_file( File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\Scripts\steamsync.py", line 358, in add_games_to_shortcut_file last_index = int(max(shortcuts["shortcuts"].keys())) ValueError: max() arg is an empty sequence

OS: Windows 10 My steam/epic installations are at their default folder paths.

jaydenmilne commented 3 years ago

I'm going to hazard a guess that this is because you have no shortcuts in Steam already. All of the little edge cases you don't consider!

jaydenmilne commented 3 years ago

I pushed a change in steamsync 0.2.4, please try upgrading it and let me know if it resolves your issue (python -m pip install --upgrae steamsync

SecondReality commented 3 years ago

I pushed a change in steamsync 0.2.4, please try upgrading it and let me know if it resolves your issue (python -m pip install --upgrae steamsync

That did work, thank you @jaydenmilne