Skip to content

Commit

Permalink
Merge pull request #66 from DaITssu/fix/#62
Browse files Browse the repository at this point in the history
[#62] enum수정 및 캘린더 코드 수정
  • Loading branch information
NokboongI authored Jan 4, 2024
2 parents 48b009a + 5a68593 commit cd653f1
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 58 deletions.
5 changes: 4 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ async def smart_campus_controller(smart_campus_req: SmartCampusReq):
현재 정상 이용 가능합니다.
"""
from smart_campus.smart_campus import smart_campus_crawling
result = smart_campus_crawling(smart_campus_req.token, smart_campus_req.student_id)
try:
result = smart_campus_crawling(smart_campus_req.token, smart_campus_req.student_id)
except:
raise HTTPException(status_code=400, detail="에러가 발생 했습니다.")
return result

@app.post("/smart-campus/auth")
Expand Down
Loading

0 comments on commit cd653f1

Please sign in to comment.