]> git.mxchange.org Git - fba.git/blobdiff - fba/network.py
Continued:
[fba.git] / fba / network.py
index d9322219a717e2a7dc4ba346180727b84b2fb543..df883c9e5756068554c48782ee93266a59189c45 100644 (file)
@@ -23,7 +23,7 @@ from fba import fba
 from fba import instances
 
 # HTTP headers for non-API requests
-headers = {
+web_headers = {
     "User-Agent": config.get("useragent"),
 }
 
@@ -125,7 +125,7 @@ def fetch_friendica_blocks(domain: str) -> dict:
 
     try:
         doc = bs4.BeautifulSoup(
-            fetch_response(domain, "/friendica", headers, (config.get("connection_timeout"), config.get("read_timeout"))).text,
+            fetch_response(domain, "/friendica", web_headers, (config.get("connection_timeout"), config.get("read_timeout"))).text,
             "html.parser",
         )
     except BaseException as exception: