From 4a12bc40a39471cd79a98fed57a68f5c34c3c908 Mon Sep 17 00:00:00 2001 From: urlbot Date: Tue, 28 Jul 2015 22:57:24 +0200 Subject: [PATCH] hopefully fix "TypeError: argument of type 'URLError' is not iterable" --- plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index 93000ac..a1c9ae5 100644 --- a/plugins.py +++ b/plugins.py @@ -922,7 +922,7 @@ def command_dsa_watcher(argv, **args): log.plugin(msg) out.append(msg) else: - if not '404' in err: + if not '404' in str(err): msg = 'error for %s: %s' % (url, err) log.warn(msg) out.append(msg)