diff options
author | 2015-07-24 02:15:31 +0200 | |
---|---|---|
committer | 2015-07-24 02:15:31 +0200 | |
commit | f7df6ef48a7c0a8ab6351e046cd12160257c4ef5 (patch) | |
tree | 4de8fa92e43f70a514a05ee7824c3fbdc351b971 /module/plugins/internal/Captcha.py | |
parent | Small __init__ fixes (diff) | |
download | pyload-f7df6ef48a7c0a8ab6351e046cd12160257c4ef5.tar.xz |
Hotfixes
Diffstat (limited to 'module/plugins/internal/Captcha.py')
-rw-r--r-- | module/plugins/internal/Captcha.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/internal/Captcha.py b/module/plugins/internal/Captcha.py index 1d23eb16e..1345f1784 100644 --- a/module/plugins/internal/Captcha.py +++ b/module/plugins/internal/Captcha.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import time +import traceback from module.plugins.internal.Plugin import Plugin @@ -110,8 +111,9 @@ class Captcha(Plugin): if not self.pyload.debug: try: os.remove(tmp_img.name) - except Exception: - pass + except OSError, e: + self.log_warning(_("Error removing: %s") % tmp_img.name, e) + traceback.print_exc() return result |