Error when result has only one card
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MagicLibrary |
Fix Committed
|
Medium
|
Xisberto |
Bug Description
When search returns only one card, Gatherer shows the card's page, and not the table of results. It generates a IndexError like code bellow:
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/home/
for ret in self.generator(
File "/home/
self.
File "/usr/lib/
self.goahead(0)
File "/usr/lib/
k = self.parse_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
method(attrs)
File "/home/
table_class = [v for k, v in attrs if k=="class"][0]
IndexError: list index out of range
A search which returns only one card: http://
Changed in magiclibrary: | |
importance: | Undecided → Medium |
assignee: | nobody → Xisberto (xisberto) |
status: | New → Confirmed |
Resolved in revision 13.