Skip to content

Commit ae7c275

Browse files
Optional HA api-base (#774)
1 parent 2701650 commit ae7c275

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/utils/state.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from app.core.payment.types_payment import HelloAssoConfigName
1717
from app.core.utils.config import Settings
1818
from app.modules.raid.utils.drive.drive_file_manager import DriveFileManager
19-
from app.types.exceptions import PaymentToolCredentialsNotSetException
2019
from app.types.scheduler import OfflineScheduler, Scheduler
2120
from app.types.websocket import WebsocketConnectionManager
2221
from app.utils.communication.notifications import NotificationManager
@@ -144,7 +143,7 @@ def init_payment_tools(
144143
hyperion_error_logger.error(
145144
"HelloAsso API base URL is not set in settings, payment won't be available",
146145
)
147-
raise PaymentToolCredentialsNotSetException
146+
return {}
148147

149148
payment_tools: dict[HelloAssoConfigName, PaymentTool] = {}
150149
for helloasso_config in settings.PARSED_HELLOASSO_CONFIGURATIONS:

0 commit comments

Comments
 (0)