Skip to content

Commit 9d6b72c

Browse files
committed
fixed logic
1 parent c9ca374 commit 9d6b72c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cs50/sql.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ def process(value):
192192
ret = result.rowcount
193193

194194
# If some other statement, return True unless exception
195-
ret = True
195+
else:
196+
ret = True
196197

197198
# If constraint violated, return None
198199
except sqlalchemy.exc.IntegrityError:

0 commit comments

Comments
 (0)