Undefined name: pe --> pw (#355)
$ `flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics`
```
./slam-mirrorbot/bot/helper/mirror_utils/download_utils/direct_link_generator.py:351:39: F821 undefined name 'pe'
req = requests.post(url, data=pe)
^
1 F821 undefined name 'pe'
1
```
This commit is contained in:
parent
41da301885
commit
a6566236cc
|
|
@ -348,7 +348,7 @@ def fichier(link: str) -> str:
|
|||
req = requests.post(url)
|
||||
else:
|
||||
pw = {"pass": pswd}
|
||||
req = requests.post(url, data=pe)
|
||||
req = requests.post(url, data=pw)
|
||||
except:
|
||||
raise DirectDownloadLinkException("ERROR: Unable to reach 1fichier server!")
|
||||
if req.status_code == 404:
|
||||
|
|
|
|||
Loading…
Reference in New Issue