Fix: don't do 'contains' check on the error message

probably worked in 'some cases'; probably caused by accepting
a copilot suggestion a bit too eagerly
This commit is contained in:
Klaas van Schelven
2025-07-14 15:35:44 +02:00
parent 54ff368cf2
commit 0d8d55a451

View File

@@ -22,9 +22,11 @@ class Command(BaseCommand):
self.stopped = False
signal.signal(signal.SIGINT, self.handle_sigint)
storage_names = ",".join(get_settings().EVENT_STORAGES.keys())
storage_names = get_settings().EVENT_STORAGES.keys()
available_storages = ",".join(storage_names)
if options['storage_name'] not in storage_names:
print(f"Storage name {options['storage_name']} not found. Available storage names: {storage_names}")
print(f"Storage name {options['storage_name']} not found. Available storage names: {available_storages}")
sys.exit(1)
storage = get_storage(options['storage_name'])