Skip to content

Commit 5d77e78

Browse files
authored
Fix fastapi-oracle-nosql-example (#168)
* Update myfapi.py fix in SQL statement * Update fastapi-oracle-nosql-example.zip
1 parent d9bac58 commit 5d77e78

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

examples-nosql-python-sdk/fastapi-oracle-nosql-example/myfapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ def get_items(page: int = 0, limit: int = 10, orderby: str = "item_id", where: s
109109
for row in qiresult:
110110
try:
111111
items.append(Item.parse_obj(row))
112-
return items
113112
except Exception as e:
114113
print("---- Ignoring bad records")
115114
print(f"Error: {e}")
116115
continue
116+
return items
117117
except Exception as e:
118118
raise HTTPException(status_code=500, detail=f"Error: {e}")
119119

zips/fastapi-oracle-nosql-example.zip

-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)