fix change in behavior (#39)

pull/41/head
toshiaki1729 2023-02-18 16:29:34 +09:00
parent ddde7b756e
commit 8190f910e9
1 changed files with 0 additions and 3 deletions

View File

@ -439,9 +439,6 @@ class DatasetTagEditor:
del self.images[img_path]
os.replace(img_path, dst_path)
self.dataset.remove_by_path(img_path)
img = Image.open(dst_path)
img.already_saved_as = dst_path
self.images[dst_path] = img
print(f'[tag-editor] Moved {img_path} -> {dst_path}')
except Exception as e:
print(e)