mirror of https://github.com/scrapy/scrapy.git
fix: default value
This commit is contained in:
parent
0b1da44a05
commit
82cf00bbc9
|
|
@ -48,7 +48,7 @@ def _get_commands_from_module(module, inproject):
|
|||
|
||||
def _get_commands_from_entry_points(inproject, group="scrapy.commands"):
|
||||
cmds = {}
|
||||
for entry_point in entry_points(group):
|
||||
for entry_point in entry_points().get(group, {}):
|
||||
obj = entry_point.load()
|
||||
if inspect.isclass(obj):
|
||||
cmds[entry_point.name] = obj()
|
||||
|
|
|
|||
Loading…
Reference in New Issue