fix ._cover.jpg on macos 15 (#1016)
This commit is contained in:
1 parent
8f9e230b62
commit
dbf8a3ddbd
1 file changed
+3
@@ -473,6 +473,9 @@ class Cover:
|
||||
stroke_width=25
|
||||
)
|
||||
copy.save(target, "JPEG", optimize=1, quality=85)
|
||||
dot_cover = Path(target).with_stem('._' + Path(target).stem)
|
||||
if os.path.exists(dot_cover):
|
||||
os.remove(dot_cover)
|
||||
except IOError:
|
||||
raise RuntimeError('Failed to save cover.')
|
||||
|
||||
|
||||
Reference in new issue
Block a user