mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
Initialize playtime attribute when invalid playtime found (Closes #1698)
This commit is contained in:
parent
3582df7cd8
commit
f7f0e55309
|
@ -67,6 +67,7 @@ class Game(GObject.Object):
|
|||
self.playtime = float(game_data.get("playtime") or 0.0)
|
||||
except ValueError:
|
||||
logger.error("Invalid playtime value %s", game_data.get("playtime"))
|
||||
self.playtime = 0.0
|
||||
|
||||
if self.game_config_id:
|
||||
self.load_config()
|
||||
|
|
Loading…
Reference in a new issue