From: Roland Häder Date: Tue, 20 Jun 2023 02:49:56 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a2a2d55a32b13d9235993a10ddc44759293ab93;p=fba.git Continued: - ignore non-updating UPDATE statements --- diff --git a/fba/models/blocks.py b/fba/models/blocks.py index 1ede1c7..b23f4e0 100644 --- a/fba/models/blocks.py +++ b/fba/models/blocks.py @@ -52,10 +52,6 @@ def update_reason(reason: str, blocker: str, blocked: str, block_level: str): block_level ]) - # DEBUG: print(f"DEBUG: fba.cursor.rowcount={fba.cursor.rowcount}") - if fba.cursor.rowcount == 0: - raise Exception(f"Did not update any rows: blocker='{blocker}'") - # DEBUG: print("DEBUG: EXIT!") def update_last_seen(blocker: str, blocked: str, block_level: str): @@ -84,10 +80,6 @@ def update_last_seen(blocker: str, blocked: str, block_level: str): block_level ]) - # DEBUG: print(f"DEBUG: fba.cursor.rowcount={fba.cursor.rowcount}") - if fba.cursor.rowcount == 0: - raise Exception(f"Did not update any rows: blocker='{blocker}'") - # DEBUG: print("DEBUG: EXIT!") def is_instance_blocked(blocker: str, blocked: str, block_level: str) -> bool: