Skip to content

Commit

Permalink
Move exceptions to dedicated folder
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Sep 26, 2023
1 parent f2fcd3b commit 1d2ee62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/redturtle/prenotazioni/adapters/booker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@
from redturtle.prenotazioni.adapters.slot import BaseSlot
from redturtle.prenotazioni.config import VERIFIED_BOOKING
from redturtle.prenotazioni.content.prenotazione import VACATION_TYPE
from redturtle.prenotazioni.exceptions import BookingsLimitExceded
from redturtle.prenotazioni.exceptions import BookerException, BookingsLimitExceded
from redturtle.prenotazioni.prenotazione_event import MovedPrenotazione
from redturtle.prenotazioni.utilities.dateutils import exceedes_date_limit


class BookerException(Exception):
pass


class IBooker(Interface):
"""Interface for a booker"""

Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/prenotazioni/exceptions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
from .booker import BookingsLimitExceded # noqa
from .booker import BookerException, BookingsLimitExceded # noqa

0 comments on commit 1d2ee62

Please sign in to comment.