Spaces:
Runtime error
Runtime error
Update api/router/book_collection.py
Browse files
api/router/book_collection.py
CHANGED
|
@@ -30,7 +30,11 @@ async def get_book_collection(user: user_dependency, db: db_dependency):
|
|
| 30 |
"book_collection": book_collection,
|
| 31 |
}
|
| 32 |
except Exception as e:
|
| 33 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
@router.post("/book_collection")
|
|
|
|
| 30 |
"book_collection": book_collection,
|
| 31 |
}
|
| 32 |
except Exception as e:
|
| 33 |
+
return {
|
| 34 |
+
"status": "false",
|
| 35 |
+
"book_collection": [],
|
| 36 |
+
"message": handle_exception(e)
|
| 37 |
+
}
|
| 38 |
|
| 39 |
|
| 40 |
@router.post("/book_collection")
|