mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-24 09:43:35 -05:00
fixes MONGO_HOST not found error
This commit is contained in:
@@ -35,7 +35,7 @@ def _get_db_monkeypatched(cls):
|
||||
password=settings.MONGO_PASSWORD,
|
||||
tz_aware=settings.USE_TZ)
|
||||
register_key_transform(get_db())
|
||||
except ConnectionError:
|
||||
except (ConnectionError, AttributeError):
|
||||
logger.info('Failed to establish connect to MongoDB')
|
||||
return get_db(cls._meta.get("db_alias", "default"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user