From: Michael Tremer Date: Mon, 29 Dec 2025 13:59:34 +0000 (+0000) Subject: backend: Fix reading the configuration file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3159d736dfab7f6bafe42f37eae597a993e890c;p=dbl.git backend: Fix reading the configuration file Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/__init__.py b/src/dnsbl/__init__.py index dc67c80..7f49ccb 100644 --- a/src/dnsbl/__init__.py +++ b/src/dnsbl/__init__.py @@ -57,7 +57,7 @@ class Backend(object): # Parse the file if config: - if isinstance(config, io.RawIOBase): + if isinstance(config, io.TextIOWrapper): c.read_file(config) else: c.read([config])