浏览代码

[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 年之前
父节点
当前提交
194640b23c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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