Browse Source

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

Harsh Gupta 5 tháng trước cách đây
mục cha
commit
e89a5eda39
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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