print(f"DEBUG: Updating block last seen for blocker='{blocker}',blocked='{blocked}' ...")
fba.update_last_seen(blocker, blocked, block_level)
+ # DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
# Reasons
fba.update_last_seen(blocker, blocking, block_level)
fba.update_block_reason(reason, blocker, blocking, block_level)
+ # DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
except Exception as e:
print(f"ERROR: blocker='{blocker}',software='{software}',exception[{type(e)}]:'{str(e)}'")
fba.update_last_seen(blocker, blocked, block_level)
fba.update_block_reason(reason, blocker, blocked, block_level)
+ # DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
except Exception as e:
print(f"ERROR: blocker='{blocker}',software='{software}',exception[{type(e)}]:'{str(e)}'")
# DEBUG: print(f"DEBUG: Setting block reason for blocked='{blocked}':'{peer['public_comment']}'")
entry["reason"] = peer["public_comment"]
+ # DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
except Exception as e:
print(f"ERROR: blocker='{blocker}',software='{software}',exception[{type(e)}]:'{str(e)}'")