from django.conf import settings
from translations.lib.types import (TransManagerMixin, TransManagerError)
from txcommon.commands import (run_command, CommandError)
+from txcommon.log import logger
+ # Only try to get the POT for a PO when it's really needed.
+ # It might be an expensive operation
source_file = self.get_source_file_for_pofile(filename)
- raise SourceFileError, ("No POT file found. It is requited to "
- is_msgmerged = self.msgmerge(filename, source_file)
+ logger.debug("No POT file found for the '%s' file." % filename)
+ is_msgmerged = self.msgmerge(filename, source_file)