Skip to content

Commit

Permalink
Fix sabnzb startup
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <e.anastayyar@gmail.com>
  • Loading branch information
anasty17 committed Jul 30, 2024
1 parent 66a57bc commit 2ce2985
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit 2ce2985

Please sign in to comment.