diff options
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 68fb6f8be..9caf4d81a 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -244,7 +244,7 @@ class Plugin(object): :param wait_time: time to wait in seconds :param reason: reason for retrying, will be passed to fail if max_tries reached """ - if self.retries >= max_tries: + if max_tries and self.retries >= max_tries: if not reason: reason = "Max retries reached" raise Fail(reason) |