From 072e72a4aefd91101b79dd05d8ce9f100a4b6b0c Mon Sep 17 00:00:00 2001
From: Mathieu Comandon <strycore@gmail.com>
Date: Fri, 25 Feb 2022 14:02:12 -0800
Subject: [PATCH] contentstatsid key might not be present

---
 lutris/util/steam/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lutris/util/steam/config.py b/lutris/util/steam/config.py
index 237cb36f24..bae2ec22da 100644
--- a/lutris/util/steam/config.py
+++ b/lutris/util/steam/config.py
@@ -158,7 +158,7 @@ def get_entry_case_insensitive(library_dict, path):
     with open(library_filename, "r", encoding='utf-8') as steam_library_file:
         library = vdf_parse(steam_library_file, {})
         # The contentstatsid key is unused and causes problems when looking for library paths.
-        library["libraryfolders"].pop("contentstatsid")
+        library["libraryfolders"].pop("contentstatsid", None)
     try:
         return get_entry_case_insensitive(library, ["libraryfolders"])
     except KeyError as ex:
