mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-08 22:22:24 -05:00
lazy init encryption
This commit is contained in:
@@ -163,7 +163,7 @@ def get_encryption():
|
||||
print(hilite(f"FAKE CONFIG is {fake_config}"))
|
||||
fake_app.init_fake_encryption_app(fake_config)
|
||||
encryption.init_app(fake_app)
|
||||
return encryption()
|
||||
return encryption
|
||||
if encryption is None:
|
||||
raise RuntimeError(f"Celery not initialized encryption: {encryption}")
|
||||
return encryption
|
||||
|
||||
Reference in New Issue
Block a user