Proper try/except block for service.character.charList - catch all errors
This commit is contained in:
@@ -103,9 +103,9 @@ class Character():
|
||||
|
||||
def charList(self, charID, userID, apiKey):
|
||||
char = eos.db.getCharacter(charID)
|
||||
char.apiID = userID
|
||||
char.apiKey = apiKey
|
||||
try:
|
||||
char.apiID = userID
|
||||
char.apiKey = apiKey
|
||||
return char.apiCharList()
|
||||
except:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user