From 58878a455067837dbe72c690606157831d3afae1 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 28 Dec 2015 23:46:24 +0100 Subject: Spare code fixes (3) --- module/plugins/internal/SimpleCrypter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/internal/SimpleCrypter.py') diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index b98ac4d76..97d7a660a 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -148,7 +148,7 @@ class SimpleCrypter(Crypter): def handle_direct(self, pyfile): - maxredirs = self.pyload.api.getConfigValue("UserAgentSwitcher", "maxredirs", "plugin") or 5 + maxredirs = int(self.pyload.api.getConfigValue("UserAgentSwitcher", "maxredirs", "plugin")) or 5 #@TODO: Remove `int` in 0.4.10 redirect = None for i in xrange(maxredirs): -- cgit v1.2.3