try:
print(f"INFO: Fetching instances from domain='{domain}' ...")
federation.fetch_instances(domain, None, None, inspect.currentframe().f_code.co_name)
+
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({domain}) ...")
+ cookies.clear(domain)
except network.exceptions as exception:
print(f"WARNING: Exception '{type(exception)}' during fetching instances (fetch_bkali) from domain='{domain}'")
instances.set_last_error(domain, exception)
blocks.update_last_seen(blocker, blocked, block_level)
blocks.update_reason(reason, blocker, blocked, block_level)
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({blocked}) ...")
+ cookies.clear(blocked)
+
# DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
else:
if config.get("bot_enabled") and len(blockdict) > 0:
network.send_bot_post(blocker, blockdict)
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({blocker}) ...")
+ cookies.clear(blocker)
+
# DEBUG: print("DEBUG: EXIT!")
def fetch_observer(args: argparse.Namespace):
print(f"INFO: Fetching instances for domain='{domain}',software='{software}'")
federation.fetch_instances(domain, None, None, inspect.currentframe().f_code.co_name)
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({domain}) ...")
+ cookies.clear(domain)
+
# DEBUG: print("DEBUG: EXIT!")
def fetch_cs(args: argparse.Namespace):
try:
print(f"INFO: Fetching instances from domain='{row['domain']}' ...")
federation.fetch_instances(row["domain"], 'chaos.social', None, inspect.currentframe().f_code.co_name)
+
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({row['domain']}) ...")
+ cookies.clear(row["domain"])
except network.exceptions as exception:
print(f"WARNING: Exception '{type(exception)}' during fetching instances (fetch_cs) from domain='{row['domain']}'")
instances.set_last_error(row["domain"], exception)
try:
print(f"INFO: Fetching instances from domain='{domain}' ...")
federation.fetch_instances(domain, None, None, inspect.currentframe().f_code.co_name)
+
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({domain}) ...")
+ cookies.clear(domain)
except network.exceptions as exception:
print(f"WARNING: Exception '{type(exception)}' during fetching instances (fetch_fba_rss) from domain='{domain}'")
instances.set_last_error(domain, exception)
try:
print(f"INFO: Fetching instances from domain='{domain}' ...")
federation.fetch_instances(domain, None, None, inspect.currentframe().f_code.co_name)
+
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({domain}) ...")
+ cookies.clear(domain)
except network.exceptions as exception:
print(f"WARNING: Exception '{type(exception)}' during fetching instances (fetch_fbabot_atom) from domain='{domain}'")
instances.set_last_error(domain, exception)
try:
print(f"INFO: Fetching instances from args.domain='{args.domain}' ...")
federation.fetch_instances(args.domain, None, None, inspect.currentframe().f_code.co_name)
+
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({args.domain}) ...")
+ cookies.clear(args.domain)
except network.exceptions as exception:
print(f"WARNING: Exception '{type(exception)}' during fetching instances (fetch_instances) from args.domain='{args.domain}'")
instances.set_last_error(args.domain, exception)
try:
print(f"INFO: Fetching instances for instance '{row[0]}' ('{row[2]}') of origin='{row[1]}',nodeinfo_url='{row[3]}'")
federation.fetch_instances(row[0], row[1], row[2], inspect.currentframe().f_code.co_name, row[3])
+
+ # DEBUG: print(f"DEBUG: Invoking cookies.clear({row[0]}) ...")
+ cookies.clear(row[0])
except network.exceptions as exception:
print(f"WARNING: Exception '{type(exception)}' during fetching instances (fetch_instances) from domain='{row[0]}'")
instances.set_last_error(row[0], exception)