summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar yifanchen <yifanchen@synology.com> 2016-02-17 10:58:04 +0100
committerGravatar yifanchen <yifanchen@synology.com> 2016-02-17 11:01:19 +0100
commit7714c7da13f9d07500bbd56e4ee06e14b12276f7 (patch)
tree140994d1a9a14389d69a697ebe8aefd5836005ea /module
parent[UploadingCom] Update (diff)
downloadpyload-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.py4
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