Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09cb765

Browse files
committed
use __START_URL__ placeholder if not exists
1 parent 734cb3b commit 09cb765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyspider/webui/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def debug(project):
5050
script = (default_script
5151
.replace('__DATE__', datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
5252
.replace('__PROJECT_NAME__', project)
53-
.replace('__START_URL__', request.values.get('start-urls', '__START_URL__')))
53+
.replace('__START_URL__', request.values.get('start-urls') or '__START_URL__'))
5454

5555
taskid = request.args.get('taskid')
5656
if taskid:

0 commit comments

Comments
 (0)