Better API handling, avoid hitting the character API with NPC corps

This commit is contained in:
2012-02-03 00:14:06 +00:00
parent 85c36b6829
commit a9ed7d97f2
3 changed files with 7 additions and 3 deletions

View File

@@ -20,5 +20,8 @@ class APIAccessException(Exception):
Raised on Access errors of any kind, network and EVE API failures
"""
def __init__(self, msg):
self.msg = msg
def __str__(self):
return "An error was encountered while accessing the EVE API."
return "An error was encountered while accessing the EVE API: %s" % self.msg