fix: make mypy happy

pull/156/head
Raphaël Vinot 2021-01-13 15:16:36 +01:00
parent a4e520dac5
commit 61baab1fbe
1 changed files with 2 additions and 2 deletions

View File

@ -659,8 +659,8 @@ class Lookyloo():
to_return = BytesIO()
size = 64, 64
try:
screenshot = self.get_screenshot(capture_uuid)
with Image.open(screenshot) as screenshot:
s = self.get_screenshot(capture_uuid)
with Image.open(s) as screenshot:
c_screenshot = screenshot.crop((0, 0, screenshot.width, screenshot.width))
c_screenshot.thumbnail(size)
c_screenshot.save(to_return, 'png')