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

Skip to content

Commit 59078bb

Browse files
committed
Fix for an Issue #154
1 parent 4649450 commit 59078bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/target.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ def __createTargetDirs():
399399
conf.outputPath = tempDir
400400

401401
with open(os.path.join(conf.outputPath, "target.txt"), "w+") as f:
402-
f.write(kb.originalUrls.get(conf.url) or conf.url or conf.hostname)
402+
_ = kb.originalUrls.get(conf.url) or conf.url or conf.hostname
403+
f.write(_.encode(UNICODE_ENCODING))
403404

404405
__createDumpDir()
405406
__createFilesDir()

0 commit comments

Comments
 (0)