From ab7c0971e7551d08dba9ff8a44488fb631ece357 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 8 May 2024 11:47:04 +0100 Subject: [PATCH] Tidying --- acceptreject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acceptreject.py b/acceptreject.py index e062513db..57fb6aff0 100644 --- a/acceptreject.py +++ b/acceptreject.py @@ -207,7 +207,7 @@ def receive_accept_reject(base_dir: str, domain: str, message_json: {}, onion_domain: str, i2p_domain: str) -> bool: """Receives an Accept or Reject within the POST section of HTTPServer """ - if message_json['type'] != 'Accept' and message_json['type'] != 'Reject': + if message_json['type'] not in ('Accept', 'Reject'): return False if not has_actor(message_json, debug): return False