Browse Source

[core] Overly alarming message when libtidy is not found

Failure to import tidylib is not a big deal for production. We shouldn't
generate a big error with stack trace.
bc Wong 13 năm trước cách đây
mục cha
commit
194640b23c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/core/src/desktop/middleware.py

+ 1 - 1
desktop/core/src/desktop/middleware.py

@@ -401,7 +401,7 @@ try:
   _has_tidylib = True
 except Exception, ex:
   # The exception type is not ImportError. It's actually an OSError.
-  logging.exception("Failed to import tidylib. Is libtidy installed?")
+  logging.warn("Failed to import tidylib (for debugging). Is libtidy installed?")
   _has_tidylib = False