diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-02-15 21:55:34 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-02-15 21:55:34 -0800 |
commit | ae71c814ec7287cd5da96bba247cec03ae904796 (patch) | |
tree | 22753ade14a55793c57d090eed5ead846e78a776 /fatcat_scholar/web.py | |
parent | cd3e05ac8dc98d87d50c67c28968fa228ea2d016 (diff) | |
download | fatcat-scholar-ae71c814ec7287cd5da96bba247cec03ae904796.tar.gz fatcat-scholar-ae71c814ec7287cd5da96bba247cec03ae904796.zip |
fmt and lint fixes (including one actual bug)
Diffstat (limited to 'fatcat_scholar/web.py')
-rw-r--r-- | fatcat_scholar/web.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index 8a1faa7..dce732b 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -99,7 +99,7 @@ class HitsModel(BaseModel): async def search(query: FulltextQuery = Depends(FulltextQuery)) -> FulltextHits: hits: Optional[FulltextHits] = None if query.q is None: - raise HTTPException(status_code=400, detail=f"Expected a 'q' query parameter") + raise HTTPException(status_code=400, detail="Expected a 'q' query parameter") try: hits = process_query(query) except ValueError as e: @@ -328,7 +328,7 @@ app.add_middleware( allow_origins=["*"], allow_credentials=False, allow_methods=["GET"], - allow_headers=[], # some defaults always enabled + allow_headers=[], # some defaults always enabled ) if settings.SENTRY_DSN: |