fix: default value

This commit is contained in:
Laerte Pereira 2023-06-20 18:27:03 -03:00
parent 0b1da44a05
commit 82cf00bbc9
1 changed files with 1 additions and 1 deletions

View File

@ -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()