mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
DeepSource Fixing Antipatterns
This commit is contained in:
parent
1152856f2a
commit
7b97b8e0ef
11 changed files with 177 additions and 185 deletions
|
@ -64,7 +64,7 @@ def generate_thumbnail(file_name, resolution, ext=None):
|
|||
|
||||
# Save image to cache directory
|
||||
try:
|
||||
image.save(os.path.join(CACHE_PATH,f'{file_name}_{res_x}x{res_y}.{ext}'),
|
||||
image.save(os.path.join(CACHE_PATH, f'{file_name}_{res_x}x{res_y}.{ext}'),
|
||||
icc_profile=image_icc)
|
||||
except OSError:
|
||||
# This usually happens when saving a JPEG with an ICC profile,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue