time.time()
),
)
-
- connection.commit()
except BaseException as e:
print(f"ERROR: failed SQL query: blocker='{blocker}',blocked='{blocked}',reason='{reason}',block_level='{block_level}',exception[{type(e)}]:'{str(e)}'")
sys.exit(255)
print(f"WARNING: Did not update any rows: domain='{domain}',fields()={len(fields)} - EXIT!")
return
+ # DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
# DEBUG: print("DEBUG: Deleting instance_data for domain:", domain)
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)}'")
# DEBUG: print(f"DEBUG: domain='{row['domain']}',block_level='{block_level}' blocked by chaos.social, adding ...")
fba.block_instance('chaos.social', row["domain"], row["reason"], block_level)
+ # DEBUG: print("DEBUG: Committing changes ...")
+ fba.connection.commit()
+
boot.shutdown()