diff options
author | yifanchen <yifanchen@synology.com> | 2016-02-17 10:58:04 +0100 |
---|---|---|
committer | yifanchen <yifanchen@synology.com> | 2016-02-17 11:01:19 +0100 |
commit | 7714c7da13f9d07500bbd56e4ee06e14b12276f7 (patch) | |
tree | 140994d1a9a14389d69a697ebe8aefd5836005ea /module | |
parent | [UploadingCom] Update (diff) | |
download | pyload-7714c7da13f9d07500bbd56e4ee06e14b12276f7.tar.xz |
Avoiding UnboundLocalError when using method 'type' on method get_info
from SimpleHoster.
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index c2a51c879..c68703a73 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -188,8 +188,8 @@ class SimpleHoster(Hoster): info['size'] = parse_size(info['size'], unit) if 'H' in info['pattern']: - type = info['pattern']['H'].strip('-').upper() - info['hash'][type] = info['pattern']['D'] + the_type = info['pattern']['H'].strip('-').upper() + info['hash'][the_type] = info['pattern']['D'] return info |