Skip to content

Commit 4b35573

Browse files
committed
Fix minor error in dynamic load function
1 parent 04df22f commit 4b35573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/validate_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _load_obj(name):
267267
else:
268268
continue
269269

270-
if 'module' not in locals():
270+
if 'obj' not in locals():
271271
raise ImportError('No module can be imported '
272272
'from "{}"'.format(name))
273273

0 commit comments

Comments
 (0)