From 1d2ee625856704229b4deb96e3da64c39662ae6a Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 26 Sep 2023 10:08:17 +0200 Subject: [PATCH] Move exceptions to dedicated folder --- src/redturtle/prenotazioni/adapters/booker.py | 6 +----- src/redturtle/prenotazioni/exceptions/__init__.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/redturtle/prenotazioni/adapters/booker.py b/src/redturtle/prenotazioni/adapters/booker.py index c38d7481..02c95816 100644 --- a/src/redturtle/prenotazioni/adapters/booker.py +++ b/src/redturtle/prenotazioni/adapters/booker.py @@ -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""" diff --git a/src/redturtle/prenotazioni/exceptions/__init__.py b/src/redturtle/prenotazioni/exceptions/__init__.py index 956bd811..8d7e8395 100644 --- a/src/redturtle/prenotazioni/exceptions/__init__.py +++ b/src/redturtle/prenotazioni/exceptions/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -from .booker import BookingsLimitExceded # noqa +from .booker import BookerException, BookingsLimitExceded # noqa