diff --git a/modules/title.py b/modules/title.py index c7e4f515..b3d2fd85 100644 --- a/modules/title.py +++ b/modules/title.py @@ -13,6 +13,8 @@ class Module(ModuleManager.BaseModule): except Exception as e: self.log.error("failed to get URL title", [], exc_info=True) return None + except utils.http.HTTPWrongContentTypeException: + return None if page.data.title: return page.data.title.text.replace("\n", " ").replace( "\r", "").replace(" ", " ").strip()