Make errors properly translatable

This commit is contained in:
kramo
2023-06-26 11:08:33 +02:00
parent 92add88c5d
commit 4f7dc8716a
3 changed files with 14 additions and 8 deletions

View File

@@ -44,6 +44,6 @@ class SGDBManager(AsyncManager):
# If invalid auth, cancel all SGDBManager tasks
self.cancellable.cancel()
raise FriendlyError(
"Couldn't authenticate SteamGridDB",
"Verify your API key in preferences",
_("Couldn't authenticate SteamGridDB"),
_("Verify your API key in preferences"),
) from error