Fix name overrides (broken by 51008a).
This commit is contained in:
parent
844bec09ba
commit
295b53a2d3
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue