Proper try/except block for service.character.charList - catch all errors

This commit is contained in:
HomeWorld
2010-12-04 20:30:36 +02:00
parent 4af02a8304
commit 2173560546

View File

@@ -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