From 698fb82258f04879289cf380e6fdb89a217f4d1a Mon Sep 17 00:00:00 2001 From: Pietro Bolcato Date: Wed, 17 Jul 2024 10:51:13 +0200 Subject: [PATCH] Update UA --- vectorizing/util/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vectorizing/util/read.py b/vectorizing/util/read.py index 1f377dc..54edea1 100644 --- a/vectorizing/util/read.py +++ b/vectorizing/util/read.py @@ -45,7 +45,7 @@ def try_read_image_from_path(path): def try_read_image_from_url(url): try: - resp = requests.get(url) + resp = requests.get(url, headers={"User-Agent": "KittlVectorizing/1.0.0"}) img = Image.open(BytesIO(resp.content)) except: raise URLReadError()