1
0
mirror of https://github.com/django/django.git synced 2025-10-27 23:56:08 +00:00

Fixed #8033 -- Explained app registry error during translation setup

Thanks Tim Graham and Aymeric Augustin for the review.
This commit is contained in:
Claude Paroz
2014-06-21 15:00:35 +02:00
parent 21c496ea52
commit 9618d68b34
5 changed files with 20 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ import sys
import threading
import warnings
from django.core.exceptions import ImproperlyConfigured
from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
from django.utils import lru_cache
from django.utils.deprecation import RemovedInDjango19Warning
from django.utils._os import upath
@@ -116,7 +116,7 @@ class Apps(object):
Raises an exception if the registry isn't ready.
"""
if not self.ready:
raise RuntimeError("App registry isn't ready yet.")
raise AppRegistryNotReady()
def get_app_configs(self):
"""