Skip to content

Commit 9e49895

Browse files
committed
Fix f-string linting error
Remove f-string prefix from strings without placeholders to resolve flake8 F541 error
1 parent 863afdc commit 9e49895

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aredis_om/model/model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,11 +1611,11 @@ async def execute(
16111611
# Check if this might be a datetime field schema mismatch
16121612
if "syntax error" in error_msg and self._has_datetime_fields():
16131613
log.warning(
1614-
f"Query failed with syntax error on model with datetime fields. "
1615-
f"This might indicate a schema mismatch where datetime fields are "
1616-
f"indexed as TAG but code expects NUMERIC. "
1617-
f"Run 'om migrate-data check-schema' to verify and "
1618-
f"'om migrate-data datetime' to fix."
1614+
"Query failed with syntax error on model with datetime fields. "
1615+
"This might indicate a schema mismatch where datetime fields are "
1616+
"indexed as TAG but code expects NUMERIC. "
1617+
"Run 'om migrate-data check-schema' to verify and "
1618+
"'om migrate-data datetime' to fix."
16191619
)
16201620

16211621
# Re-raise the original exception

0 commit comments

Comments
 (0)