Syntax error #1

Closed
opened 2025-04-25 14:45:45 +00:00 by bluboy · 1 comment

Cant start it. Im on bookworm

Traceback (most recent call last):
File "CDRM-Project/main.py", line 6, in
from routes.api import api_bp
File "CDRM-Project/routes/api.py", line 153
values = ', '.join(f"'{str(v).replace(''', '\'')}'" if v is not None else 'NULL' for v in row)
^^
SyntaxError: f-string expression part cannot include a backslash

Cant start it. Im on bookworm Traceback (most recent call last): File "CDRM-Project/main.py", line 6, in <module> from routes.api import api_bp File "CDRM-Project/routes/api.py", line 153 values = ', '.join(f"'{str(v).replace('\'', '\\\'')}'" if v is not None else 'NULL' for v in row) ^^ SyntaxError: f-string expression part cannot include a backslash
Owner

This code requires python 3.12+ to run, added verbose error for this specific feature in #2

This code requires python 3.12+ to run, added verbose error for this specific feature in #2
tpd94 closed this issue 2025-04-26 23:50:46 +00:00
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tpd94/CDRM-Project#1
No description provided.