Skip to content

Commit

Permalink
fix Azamat's code
Browse files Browse the repository at this point in the history
  • Loading branch information
depocoder committed Sep 24, 2024
1 parent 4bb0900 commit ecbb598
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/controllers/modeus.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ async def get_modeus_events(
jwt = auth.value.split()[1]
return self.json(await modeus.get_events(jwt, item.value))
except IndexError as exception:
return self.json({"error": "cannot parse authorization header"})
return self.json({"error": f"cannot parse authorization header {exception}"})
except (RequestException, ModeusError) as exception:
return self.json({"error": f"can't authenticate {exception}"}, status=400)
1 change: 0 additions & 1 deletion backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from app.errors import configure_error_handlers
from app.services import configure_services
from app.settings import Settings, load_settings
from app.templating import configure_templating
from blacksheep import Application
from rodi import Container

Expand Down

0 comments on commit ecbb598

Please sign in to comment.