We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af092b8 commit 3f992e6Copy full SHA for 3f992e6
1 file changed
library/jma_amesh.py
@@ -15,6 +15,8 @@
15
import requests
16
from PIL import Image, ImageEnhance
17
18
+from slackbot_settings import VERSION
19
+
20
21
@dataclass
22
class WebMercatorTile:
@@ -94,7 +96,7 @@ def get_tile_image(
94
96
)
95
97
res = []
98
for url in urls:
- res.append(Image.open(BytesIO(requests.get(url).content)))
99
+ res.append(Image.open(BytesIO(requests.get(url, headers={'user-agent': f'hato-bot/{VERSION}'}).content)))
100
dst_image = Image.new(
101
"RGBA", (256 * (2 * around_tiles + 1), 256 * (2 * around_tiles + 1))
102
0 commit comments