Skip to content

Commit 60e928d

Browse files
committed
super-linterによる指摘事項修正
1 parent 3f992e6 commit 60e928d

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

library/jma_amesh.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import requests
1616
from PIL import Image, ImageEnhance
17-
1817
from slackbot_settings import VERSION
1918

2019

@@ -96,7 +95,15 @@ def get_tile_image(
9695
)
9796
res = []
9897
for url in urls:
99-
res.append(Image.open(BytesIO(requests.get(url, headers={'user-agent': f'hato-bot/{VERSION}'}).content)))
98+
res.append(
99+
Image.open(
100+
BytesIO(
101+
requests.get(
102+
url, headers={"user-agent": f"hato-bot/{VERSION}"}
103+
).content
104+
)
105+
)
106+
)
100107
dst_image = Image.new(
101108
"RGBA", (256 * (2 * around_tiles + 1), 256 * (2 * around_tiles + 1))
102109
)

0 commit comments

Comments
 (0)