Skip to content

Commit 104670b

Browse files
committed
Fix bandit security warnings
Add nosec comment for intentional try/except/continue pattern in schema detection
1 parent 9e49895 commit 104670b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aredis_om/model/migrations/datetime_migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def check_for_schema_mismatches(self, models: List[Any]) -> Dict[str, Any]
5454
# Try to get index info
5555
index_info = await self.redis.execute_command("FT.INFO", index_name)
5656
current_schema = self._parse_index_schema(index_info)
57-
except Exception:
57+
except Exception: # nosec B112
5858
# Index doesn't exist or other error - skip this model
5959
continue
6060

0 commit comments

Comments
 (0)