From d6cef8b06b56d90743e563d463635046b1d729d9 Mon Sep 17 00:00:00 2001 From: "Nicholas St. Germain" Date: Tue, 18 Dec 2018 21:24:02 -0600 Subject: [PATCH] fixed logic for ombi requests --- varken/ombi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varken/ombi.py b/varken/ombi.py index 84ceea7..f9a4830 100644 --- a/varken/ombi.py +++ b/varken/ombi.py @@ -28,7 +28,8 @@ class OmbiAPI(object): get_tv = connection_handler(self.session, tv_req, self.server.verify_ssl) get_movie = connection_handler(self.session, movie_req, self.server.verify_ssl) - if not all([get_tv, get_movie]): + if not any([get_tv, get_movie]): + self.logger.error('No json replies. Discarding job') return movie_request_count = len(get_movie)