From e89156e55c90ef1fb7a51e225fc9372f5c0a66eb Mon Sep 17 00:00:00 2001 From: glubsy Date: Wed, 24 Jun 2020 22:01:30 +0200 Subject: [PATCH] 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 --- core/app.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/app.py b/core/app.py index a5fd8ac4..070769e1 100644 --- a/core/app.py +++ b/core/app.py @@ -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):