Browse Source

[importer] Change error logging from exception to warning for python-magic package import (#4160)

Harsh Gupta 5 months ago
parent
commit
e89a5eda39
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/lib/importer/operations.py

+ 1 - 1
desktop/core/src/desktop/lib/importer/operations.py

@@ -35,7 +35,7 @@ try:
 
   is_magic_lib_available = True
 except ImportError as e:
-  LOG.exception(f"Failed to import python-magic: {str(e)}")
+  LOG.warning(f"Failed to import python-magic: {e}")
   is_magic_lib_available = False