close image

This commit is contained in:
Justin 2023-08-17 13:27:12 +08:00 committed by GitHub
parent 7d1f5c9dd4
commit cb89f7e752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5625,6 +5625,7 @@ class StockTicker():
y = random.randint(0, max_y) y = random.randint(0, max_y)
snapshot = img.crop((x, y, x + int(all_settings['width']), y + 32)) snapshot = img.crop((x, y, x + int(all_settings['width']), y + 32))
imgs.append(snapshot) imgs.append(snapshot)
img.close()
except: except:
pass pass