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

Skip to content

Commit 0355e29

Browse files
committed
Minor fix (NoneType has no attribute split)
1 parent 95ed6b7 commit 0355e29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,10 +660,10 @@ def getDocRoot():
660660

661661
if choice == "2":
662662
message = "please provide the web server document root: "
663-
docRoot = readInput(message).split(',')
663+
docRoot = readInput(message, default="").split(',')
664664
elif choice == "3":
665665
message = "what's the list file location?\n"
666-
listPath = readInput(message)
666+
listPath = readInput(message, default="")
667667
checkFile(listPath)
668668
docRoot = getFileItems(listPath)
669669
elif choice == "4":

0 commit comments

Comments
 (0)