Add debug

merge-requests/30/head
Bob Mottram 2024-02-09 22:29:07 +00:00
parent 4238be0745
commit 07ccc9dddd
1 changed files with 1 additions and 0 deletions

View File

@ -1933,6 +1933,7 @@ def _update_federated_blocks(session, base_dir: str,
except OSError: except OSError:
print('EX: unable to remove block api: ' + block_api_filename) print('EX: unable to remove block api: ' + block_api_filename)
else: else:
print('DEBUG: federated blocklist loaded: ' + str(block_federated))
try: try:
with open(block_api_filename, 'w+', encoding='utf-8') as fp_api: with open(block_api_filename, 'w+', encoding='utf-8') as fp_api:
fp_api.write(new_block_api_str) fp_api.write(new_block_api_str)