Explorar o código

[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 %!s(int64=13) %!d(string=hai) anos
pai
achega
194640b23c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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