kihashi / mtg-irc

A module for the IRC Bot Phenny that allows users to query magic cards.
3 stars 1 forks source link

Eprice Fails when there is no price for the card #61

Closed kihashi closed 9 years ago

kihashi commented 9 years ago
15:43   Kihashi .eprice tasigur the golden fang
15:43   CardBotTest TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType' (file "/root/willie/willie/modules/card_database/models.py", line 121, in is_price_out_of_date)

I think this happens for cards that don't have an MTGO price. This set is not on MTGO, so I don't think it is lsited yet.

kihashi commented 9 years ago

The method where this is a problem is no longer used due to workarounds implemented in #60.