1
0
Fork 0
mirror of synced 2024-09-29 08:51:43 +13:00

StoreAPI: Log exception

This commit is contained in:
loathingKernel 2024-05-16 13:58:59 +03:00
parent 4bb1fb10ee
commit 9017826b16

View file

@ -97,13 +97,13 @@ class StoreAPI(QObject):
except KeyError as e:
if DEBUG():
raise e
logger.error("Free games Api request failed")
logger.exception("Free games API request failed")
handle_func(["error", "Key error"])
return
except Exception as e:
if DEBUG():
raise e
logger.error(f"Free games Api request failed: {e}")
logger.exception(f"Free games API request failed")
handle_func(["error", e])
return