diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-17 23:07:29 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-09-17 23:07:29 +0200 |
commit | c881365c4453b354c06020cc218da1c3a0ba063f (patch) | |
tree | bcdbdefb69051c5a6df6403121e6e1e2c49f03aa /module/PluginThread.py | |
parent | fixes one of last commits (diff) | |
download | pyload-c881365c4453b354c06020cc218da1c3a0ba063f.tar.xz |
detect invalid downloads on fileserv
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 5 |
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() |