Closed Landelor closed 2 years ago
Hi Landelor!
Thanks for your issue. It was indeed a bug, thanks for pointing that one out. I also verified if the other commands did have the same problem. Fortunately they were okay. Going to fix this right now, you can download version 1.0.4 in about 30 minutes :)
Describe the bug Whenever running radarr re-add with -y switch there is an error when something is available to add.
To Reproduce Steps to reproduce the behavior:
Expected behavior Re-add any found movies without error.
Versions
Debug logging Traceback (most recent call last): File "/usr/bin/excludarr", line 8, in
sys.exit(cli())
File "/usr/lib64/python3.9/site-packages/excludarr/main.py", line 68, in cli
app(prog_name="excludarr")
File "/usr/lib64/python3.9/site-packages/typer/main.py", line 214, in call
return get_command(self)(*args, kwargs)
File "/usr/lib64/python3.9/site-packages/click/core.py", line 1128, in call
return self.main(args, kwargs)
File "/usr/lib64/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib64/python3.9/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib64/python3.9/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib64/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/lib64/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(args, kwargs)
File "/usr/lib64/python3.9/site-packages/typer/main.py", line 500, in wrapper
return callback(**use_params) # type: ignore
File "/usr/lib64/python3.9/site-packages/excludarr/commands/radarr.py", line 207, in re_add
if confirmation:
UnboundLocalError: local variable 'confirmation' referenced before assignment
Additional context Add any other context about the problem here.