Timing Cleanups

This commit is contained in:
Tim 2020-10-04 19:50:42 +01:00
parent 670c658dc6
commit 4183cc6806
No known key found for this signature in database
GPG Key ID: 3D454289AF831A6D
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ def search_and_add(rtc: object, payload: dict) -> None:
while True:
let = random.choice(string.ascii_letters)
ret = requests.get(rtc.base_url + f'plugins/{plugin}/search?text={let}')
if ret.status_code == 200 and ret.text is not '[]\n':
if ret.status_code == 200 and ret.text != '[]\n':
break
else:
let = random.choice(string.ascii_letters)