Skip to content

Commit

Permalink
[bugf] dont pop the base ID in case lookup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tal committed Aug 29, 2018
1 parent bf971d2 commit c21ccaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esi_bot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def _get_dogma_urls(res):

effc_urls = {} # url: effect
for effect in effects:
url = "{}/v1/dogma/effects/{}/".format(ESI, effect.pop("effect_id"))
url = "{}/v1/dogma/effects/{}/".format(ESI, effect["effect_id"])
effc_urls[url] = effect

return attr_urls, effc_urls
Expand Down Expand Up @@ -528,6 +528,8 @@ def _expand_dogma(res, attr_urls, effc_urls):
else:
effect = effc_urls[url]
if _ret == 200:
# pls no duplication....
_res.pop("effect_id", None)
effect["effect"] = _res
dogma_effects.append(effect)
else:
Expand Down

0 comments on commit c21ccaf

Please sign in to comment.