Skip to content

Commit 0b7fde2

Browse files
committed
fix: class_object getattr
1 parent d274891 commit 0b7fde2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aioscpy/inject.py

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def load_all_spider_inner(dirname):
8686
module = module.load_module(package_name)
8787
for cls_name in module.__dir__():
8888
if cls_name == "__spiders__":
89+
class_object = getattr(module, cls_name)
8990
for co in class_object:
9091
_class_objects[co.name] = co
9192
if not cls_name.startswith('__'):

0 commit comments

Comments
 (0)