Skip to content

Commit a166f45

Browse files
committed
chore: move comment to right place
1 parent a458264 commit a166f45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

freqtrade/resolvers/iresolver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ def _get_valid_object(
8686
Tuple format: [Object, source]
8787
"""
8888

89-
# Generate spec based on absolute path
90-
# Pass object_name as first argument to have logging print a reasonable name.
9189
with PathModifier(module_path.parent):
9290
module_name = module_path.stem or ""
91+
# Generate spec based on absolute path
92+
# Pass object_name as first argument to have logging print a reasonable name.
9393
spec = importlib.util.spec_from_file_location(module_name, str(module_path))
9494
if not spec:
95-
return iter([None])
95+
return iter([])
9696

9797
module = importlib.util.module_from_spec(spec)
9898
try:

0 commit comments

Comments
 (0)