Potential patch for #3192

This commit is contained in:
Miroslav Stampar
2018-07-18 15:34:38 +02:00
parent 741ce9e3f0
commit 6bb486c1bf
3 changed files with 5 additions and 3 deletions

View File

@@ -671,6 +671,8 @@ def _createTargetDirs():
conf.outputPath = tempDir
conf.outputPath = getUnicode(conf.outputPath)
try:
with codecs.open(os.path.join(conf.outputPath, "target.txt"), "w+", UNICODE_ENCODING) as f:
f.write(kb.originalUrls.get(conf.url) or conf.url or conf.hostname)