scottrice / pysteam

Python API for accessing local Steam information
MIT License
24 stars 21 forks source link

Crashes when steam user 'anonymous' is present #2

Closed Ironykins closed 9 years ago

Ironykins commented 9 years ago

If the steam user 'anonymous' is present in steam's userdata folder, steam.py, line 77 will throw this exception: ValueError: invalid literal for int() with base 10: 'anonymous'

I'm not sure what steam user 'anonymous' is or what it does exactly, but it's the default profile on a fresh SteamOS install, so unless you delete the anonymous user manually, pysteam will crash on SteamOS.

Maybe add some sort of special case for this? Or just ignore it?

scottrice commented 9 years ago

Oh wow, I had no idea! I should really get a SteamOS box to test on. Would you mind telling me a bit more about the anonymous user? Can you actually log in with them in Steam?

scottrice commented 9 years ago

I'm thinking right now I will probably just ignore it, but if it turns out that the user is actually really useful then I will have to add a special case for it.

Ironykins commented 9 years ago

Thanks man! It seems the anonymous user is there to let you download some game server programs without having to log in to a personal steam account. Why it's there by default on SteamOS I'm not really sure, but this solution should be fine.