From 2c33d797cea751b034446b8a0f20e0511c94b7a9 Mon Sep 17 00:00:00 2001 From: Soxoj <31013580+soxoj@users.noreply.github.com> Date: Sat, 8 Jan 2022 19:15:57 +0300 Subject: [PATCH] Temporary fix for Twitter (#299) (#300) --- maigret/checking.py | 3 +++ maigret/resources/data.json | 22 ++++++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/maigret/checking.py b/maigret/checking.py index 9f368f7..a196cfc 100644 --- a/maigret/checking.py +++ b/maigret/checking.py @@ -131,6 +131,9 @@ class SimpleAiohttpChecker(CheckerBase): self.logger.debug(e, exc_info=True) error = CheckError("Unexpected", str(e)) + if error == "Invalid proxy response": + self.logger.debug(e, exc_info=True) + return str(html_text), status_code, error diff --git a/maigret/resources/data.json b/maigret/resources/data.json index 188fdd4..5337c91 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -14523,9 +14523,26 @@ "usernameClaimed": "jenny", "usernameUnclaimed": "noonewouldeverusethis7" }, + "Nitter": { + "tags": [ + "messaging" + ], + "regexCheck": "^[a-zA-Z0-9_]{1,15}$", + "checkType": "message", + "absenceStrs": [ + "