From 16f257a85a40a8da50cef1fa6ffce4e2da6da8b8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Apr 2020 01:14:28 +0200 Subject: Fix incorrect response.ok call --- plugins/lhtranslation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/lhtranslation.py') diff --git a/plugins/lhtranslation.py b/plugins/lhtranslation.py index 193e35e..f07a793 100755 --- a/plugins/lhtranslation.py +++ b/plugins/lhtranslation.py @@ -32,7 +32,7 @@ if len(sys.argv) < 2: def download_file(url, save_path): with requests.get(url, stream=True) as response: - if not response.ok(): + if not response.ok: return False with open(save_path, "wb") as file: for chunk in response.iter_content(chunk_size=8192): -- cgit v1.2.3