mrisdi commited on
Commit
878c73a
·
verified ·
1 Parent(s): bf5c40f

Update api/router/book_collection.py

Browse files
Files changed (1) hide show
  1. api/router/book_collection.py +5 -1
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 handle_exception(e)
 
 
 
 
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")