From 615bcb244e20744ae6bed02ae84723de6b94f122 Mon Sep 17 00:00:00 2001 From: Arves100 Date: Mon, 9 Mar 2020 02:07:54 +0100 Subject: [PATCH] =?UTF-8?q?Fix=C3=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inline.py b/inline.py index 1a385b7..4f2707e 100644 --- a/inline.py +++ b/inline.py @@ -139,10 +139,10 @@ class InlineBot: if not r: return self.errorText - if not "authorized" in r.headers or not "success" in r.headers or not "htmldescription" in r.headers or not "imageurl" in r.headers or not command.getHeaderField() in r.headers: + if not "authorized" in r.headers or not "success" in r.headers or not command.getHeaderField() in r.headers: return self.errorText - if r.headers["authorized"] != "true" or r.headers["success"] != "true" or r.headers[requiredField] == "": + if r.headers["authorized"] != "true" or r.headers["success"] != "true" or r.headers[command.getHeaderField()] == "": return self.errorText return r.headers[command.getHeaderField()]