Repository: Flexget/Flexget

Issue:
new bug in 3.1.85 NameError: name 'partial' is not defined
<!---
Before opening an issue, verify:

- Is this a feature request? Post it on https://feathub.com/Flexget/Flexget
- Is this an issue with webui? Make an issue over on https://github.com/Flexget/webui
- Did you recently upgrade? Look at the Change Log and Upgrade Actions to make sure that you don't need to make any changes to your config https://flexget.com/ChangeLog https://flexget.com/UpgradeActions
- Are you running FlexGet as a daemon? Stop it completely and then start it again https://flexget.com/CLI/daemon
- Did you search to see if the issue already exists? https://github.com/Flexget/Flexget/issues
- Did you fill out the issue template as completely as possible?

The issue template is here because it helps to ensure you submitted all the necessary information the first time, and allows us to more quickly review issues. Please fill it out correctly and do not ignore it, no matter how irrelevant you think it may be. Thanks in advance for your help with this!
--->

### Expected behaviour:

<!---
Please don't just say "it doesn't crash" or "it works". Explain what the expected result is.
--->
 version 3.1.85 works with transmission plugin

### Actual behaviour:
 version 3.1.85 is broken
rollback to 3.1.84 fixes the issue
### Steps to reproduce:
- Step 1: ...
run  version 3.8.5 with transmission plugin
- Step 2:..
break immediately
- Step 3:..
this issue is introduced from https://github.com/Flexget/Flexget/pull/2773/ , please revert 

#### Config:
```yaml
Paste FULL config and remove any personal info if config is too long, attach the file to the ticket.
If issue is with a single task, you can get get resulting configuration by running:
  flexget execute --task <NAME> --dump-config
Make sure to redact any personal information (passwords, api keys, etc) !
```
  
#### Log:
<details>
 <summary>(click to expand)</summary>

```
NameError: name 'partial' is not defined
Traceback (most recent call last):
  File "/home/ubuntu/flexget/lib/python3.8/site-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
  File "/home/ubuntu/flexget/lib/python3.8/site-packages/flexget/event.py", line 20, in call
    return self.func(*args, **kwargs)
  File "/home/ubuntu/flexget/lib/python3.8/site-packages/flexget/plugins/clients/transmission.py", line 616, in on_task_output
    start_torrent = partial(self.client.start_torrent, [torrent_info.id])
NameError: name 'partial' is not defined
```
</details>

### Additional information:

- FlexGet version: 3.1.85
- Python version: 3.8.6
- Installation method:  python virtualenv
- Using daemon (yes/no): yes
- OS and version: ubuntu
- Link to crash log: ^

<!---
In config and debug/crash logs, remember to redact any personal or sensitive information such as passwords, API keys, private URLs and so on.

Please verify that the following data is present before submitting your issue:

- Link to a paste service or paste above the relevant config (preferably full config, including templates if present). Please make sure the paste does not expire, if possible.
- Link to a paste service or paste above debug-level logs of the relevant task/s (use `flexget -L debug execute --tasks <Task_name>`).
- FlexGet version (use `flexget -V` to get it).
- Full Python version, for example `2.7.11` (use `python -V` to get it). 
- Installation method (pip, git install, etc).
- Whether or not you're running FlexGet as a daemon.
- OS and version.
- Attach crash log if one was generated, in addition to the debug-level log. It can be found in the directory with your config file.
--->



Discussion:
This issue has been mentioned on **Forum - FlexGet**. There might be relevant details there:

https://discuss.flexget.com/t/getting-timeout-error/5298/2


Resolving patch:
diff --git a/flexget/plugins/clients/transmission.py b/flexget/plugins/clients/transmission.py
--- a/flexget/plugins/clients/transmission.py
+++ b/flexget/plugins/clients/transmission.py
@@ -7,6 +7,7 @@
 from time import sleep
 from urllib.parse import urlparse
 
+from functools import partial
 from loguru import logger
 
 from flexget import plugin


Test patch: