diff --git a/bot/__init__.py b/bot/__init__.py index 92ef9d8c0f0..f54c99c0acc 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -573,7 +573,12 @@ def get_qb_options(): async def get_nzb_options(): global nzb_options - nzb_options = (await sabnzbd_client.get_config())["config"]["misc"] + while True: + try: + nzb_options = (await sabnzbd_client.get_config())["config"]["misc"] + except: + continue + break bot_loop.run_until_complete(get_nzb_options())