diff options
| author | 2014-10-27 01:18:45 +0100 | |
|---|---|---|
| committer | 2014-10-27 01:18:45 +0100 | |
| commit | 146fe1e309c33ab149bfaf58ad86c0dd4fb9b156 (patch) | |
| tree | 22bf2ace19d926392dbe7ba48e44c13c63cd368a /module/plugins/hooks/MergeFiles.py | |
| parent | [SimpleHoster] Direct download link support (diff) | |
| download | pyload-146fe1e309c33ab149bfaf58ad86c0dd4fb9b156.tar.xz | |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/MergeFiles.py')
| -rw-r--r-- | module/plugins/hooks/MergeFiles.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/module/plugins/hooks/MergeFiles.py b/module/plugins/hooks/MergeFiles.py index 0eab0037c..7562df2a8 100644 --- a/module/plugins/hooks/MergeFiles.py +++ b/module/plugins/hooks/MergeFiles.py @@ -2,7 +2,8 @@  import os  import re -import traceback + +from traceback import print_exc  from module.plugins.Hook import Hook, threaded  from module.utils import save_join, fs_encode @@ -68,7 +69,7 @@ class MergeFiles(Hook):                      s_file.close()                      self.logDebug("Finished merging part", splitted_file)                  except Exception, e: -                    print traceback.print_exc() +                    print_exc()                  finally:                      pyfile.setProgress(100)                      pyfile.setStatus("finished") | 
