summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-17 23:07:29 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-17 23:07:29 +0200
commitc881365c4453b354c06020cc218da1c3a0ba063f (patch)
treebcdbdefb69051c5a6df6403121e6e1e2c49f03aa /module/PluginThread.py
parentfixes one of last commits (diff)
downloadpyload-c881365c4453b354c06020cc218da1c3a0ba063f.tar.xz
detect invalid downloads on fileserv
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index e732d07fa..269500081 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -56,10 +56,9 @@ class PluginThread(Thread):
dump = self.getDebugDump(pyfile)
try:
- dump_name += ".zip"
-
import zipfile
+ dump_name += ".zip"
zip = zipfile.ZipFile(dump_name, "w")
for f in listdir(join("tmp", pyfile.pluginname)):
@@ -69,7 +68,7 @@ class PluginThread(Thread):
except:
pass
- zip.writestr(save_join(pyfile.pluginname, "debug_Report.txt"), dump_name)
+ zip.writestr(save_join(pyfile.pluginname, "debug_Report.txt"), dump)
zip.close()