Selaa lähdekoodia

[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 vuotta sitten
vanhempi
commit
194640b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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