From fc0e78acb78c4ccb1a90db416456ccf03cbf5a42 Mon Sep 17 00:00:00 2001 From: Thomas Liske Date: Mon, 19 Feb 2024 20:37:48 +0100 Subject: [PATCH] registrobr: fix exception in https source handling --- pierky/arouteserver/registro_br_db_dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pierky/arouteserver/registro_br_db_dump.py b/pierky/arouteserver/registro_br_db_dump.py index 7173f3c7..31dab8e8 100644 --- a/pierky/arouteserver/registro_br_db_dump.py +++ b/pierky/arouteserver/registro_br_db_dump.py @@ -106,7 +106,7 @@ def _get_data(self): url = self.source try: response = requests.get(url) - raw_data = response.text + raw_data = response.raw.read() except Exception as e: raise RegistroBRWhoisDBDumpError( "Error while retrieving Registro.br Whois DB dump "