From: Alexander Schmidt Date: Tue, 27 Oct 2020 00:06:09 +0000 (+0100) Subject: clean registry before registering X-Git-Url: http://git.treefish.org/~alex/photosort.git/commitdiff_plain/02570a302e71640fa9d73027378c924becba932d?ds=sidebyside clean registry before registering --- diff --git a/src/migrator.py b/src/migrator.py index b406689..1bfaacd 100644 --- a/src/migrator.py +++ b/src/migrator.py @@ -16,6 +16,7 @@ class Migrator: try: if not self._reg.is_registered(src_file_path): self._migrate_single(src_file_name, src_file_path, remove) + self._reg.clean() self._reg.register(src_file_path) else: self._reg.refresh(src_file_path)