Combatant::getCorpInfoByName: Catch Exception properly
ta2edchimp opened this issue · 0 comments
ta2edchimp commented
Combatant.php:365-371
, Combatant.php:312-327
:
PhealException
(APIException
) should be catched properly, it will be thrown when an invalid corpID is sent, that is, when Combatant::getEntityByName
received an ID of 0
via API query for the given entity name (see #75).