]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 20 Jun 2023 02:49:56 +0000 (04:49 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 20 Jun 2023 02:49:56 +0000 (04:49 +0200)
- ignore non-updating UPDATE statements

fba/models/blocks.py

index 1ede1c726ba6bb7784916a988f6ad7978143a12b..b23f4e015e88c119b7ffaa22ea7b835b34a25599 100644 (file)
@@ -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: