Add temporary workaround for bug #676

* In standard mode, for folder comparison, dupe type is wrongly set as core.fs.Folder
while it should be core.se.fs.Folder.
* Catching the NotImplementedError exception redirects to the appropriate handler
* This is only a temporary workaround until a better fix is implemented
This commit is contained in:
glubsy 2020-06-24 22:01:30 +02:00
parent d5a6ca7488
commit e89156e55c
1 changed files with 7 additions and 2 deletions

View File

@ -537,10 +537,15 @@ class DupeGuru(Broadcaster):
return empty_data()
try:
return dupe.get_display_info(group, delta)
except NotImplementedError as e:
logging.warning(
"Exception (type: %s) on GetDisplayInfo for %s: %s",
type(e), str(dupe.path), str(e))
return se.fs.Folder.get_display_info(dupe, group, delta)
except Exception as e:
logging.warning(
"Exception on GetDisplayInfo for %s: %s", str(dupe.path), str(e)
)
"Exception (type: %s) on GetDisplayInfo for %s: %s",
type(e), str(dupe.path), str(e))
return empty_data()
def invoke_custom_command(self):