Skip to content

Commit

Permalink
chore: Fix local_items() logic from recent commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 25, 2024
1 parent 06f6f01 commit 9451b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapyd/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize_component(config, setting, default, *args):


def local_items(items_dir, parsed):
return parsed.scheme.lower() in ("", "file", os.path.splitdrive(items_dir)[0].rstrip(":").lower())
return items_dir and parsed.scheme.lower() in ("", "file", os.path.splitdrive(items_dir)[0].rstrip(":").lower())


def job_log_url(job):
Expand Down

0 comments on commit 9451b71

Please sign in to comment.