Fix name overrides (broken by 51008a).

This commit is contained in:
Tobias Gruetzmacher 2016-06-05 10:03:29 +02:00
parent 844bec09ba
commit 295b53a2d3

View file

@ -84,7 +84,10 @@ class Scraper(object):
@classmethod
def getmodules(cls):
return [cls(cls.__name__)]
name = cls.__name__
if hasattr(cls, 'name'):
name = cls.name
return [cls(name)]
@property
def indexes(self):