Skip to content

Commit

Permalink
Sanitize spider module name in command line tool
Browse files Browse the repository at this point in the history
  • Loading branch information
fcanobrash committed Mar 30, 2020
1 parent 88b413f commit 69f09bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scrapy_autounit/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from scrapy.utils.python import to_unicode
from scrapy.utils.reqser import request_from_dict
from scrapy.utils.project import inside_project, get_project_settings
from scrapy.commands.genspider import sanitize_module_name

from scrapy_autounit.utils import (
add_sample,
Expand All @@ -32,7 +33,7 @@ def __init__(self, parser):

self.command = self.args.command

self.spider = self.args.spider
self.spider = sanitize_module_name(self.args.spider)
self.callback = self.args.callback
self.fixture = self.args.fixture

Expand Down

0 comments on commit 69f09bf

Please sign in to comment.