Did I find the right examples for you? yes no

All Samples(287)  |  Call(120)  |  Derive(0)  |  Import(167)
Like :class:`TemplateNotFound` but raised if multiple templates
are selected.  This is a subclass of :class:`TemplateNotFound`
exception, so just catching the base exception will catch both.

.. versionadded:: 2.2

src/w/e/webapp2_example-HEAD/lib/jinja2/environment.py   webapp2_example(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        """
        if not names:
            raise TemplatesNotFound(message=u'Tried to select from an empty list '
                                            u'of templates.')
        globals = self.make_globals(globals)
            except TemplateNotFound:
                pass
        raise TemplatesNotFound(names)
 
    @internalcode

src/g/a/gae-twitter-oauth-example-HEAD/jinja2/environment.py   gae-twitter-oauth-example(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        """
        if not names:
            raise TemplatesNotFound(message=u'Tried to select from an empty list '
                                            u'of templates.')
        globals = self.make_globals(globals)
            except TemplateNotFound:
                pass
        raise TemplatesNotFound(names)
 
    @internalcode

src/w/e/webapp2_example-HEAD/lib/jinja2/__init__.py   webapp2_example(Download)
 
# exceptions
from jinja2.exceptions import TemplateError, UndefinedError, \
     TemplateNotFound, TemplatesNotFound, TemplateSyntaxError, \
     TemplateAssertionError

src/g/a/gae-twitter-oauth-example-HEAD/jinja2/__init__.py   gae-twitter-oauth-example(Download)
 
# exceptions
from jinja2.exceptions import TemplateError, UndefinedError, \
     TemplateNotFound, TemplatesNotFound, TemplateSyntaxError, \
     TemplateAssertionError

src/w/e/webapp2_example-HEAD/lib/jinja2/testsuite/imports.py   webapp2_example(Download)
 
from jinja2 import Environment, DictLoader
from jinja2.exceptions import TemplateNotFound, TemplatesNotFound
 
 

src/m/i/microblog-HEAD/flask/lib/python2.7/site-packages/jinja2/environment.py   microblog(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        """
        if not names:
            raise TemplatesNotFound(message=u'Tried to select from an empty list '
                                            u'of templates.')
        globals = self.make_globals(globals)
            except TemplateNotFound:
                pass
        raise TemplatesNotFound(names)
 
    @internalcode

src/w/i/wizlang-HEAD/venv/lib/python2.7/site-packages/jinja2/environment.py   wizlang(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        """
        if not names:
            raise TemplatesNotFound(message=u'Tried to select from an empty list '
                                            u'of templates.')
        globals = self.make_globals(globals)
            except TemplateNotFound:
                pass
        raise TemplatesNotFound(names)
 
    @internalcode

src/o/h/oh-mainline-HEAD/vendor/packages/Jinja2/jinja2/environment.py   oh-mainline(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        """
        if not names:
            raise TemplatesNotFound(message=u'Tried to select from an empty list '
                                            u'of templates.')
        globals = self.make_globals(globals)
            except TemplateNotFound:
                pass
        raise TemplatesNotFound(names)
 
    @internalcode

src/c/a/captain-HEAD/vendor/lib/python/jinja2/environment.py   captain(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        """
        if not names:
            raise TemplatesNotFound(message=u'Tried to select from an empty list '
                                            u'of templates.')
        globals = self.make_globals(globals)
            except TemplateNotFound:
                pass
        raise TemplatesNotFound(names)
 
    @internalcode

src/s/a/salt-thin-HEAD/Jinja2-2.7/jinja2/environment.py   salt-thin(Download)
from jinja2.compiler import generate
from jinja2.runtime import Undefined, new_context
from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
     TemplatesNotFound, TemplateRuntimeError
from jinja2.utils import import_string, LRUCache, Markup, missing, \
        """
        if not names:
            raise TemplatesNotFound(message=u'Tried to select from an empty list '
                                            u'of templates.')
        globals = self.make_globals(globals)
            except TemplateNotFound:
                pass
        raise TemplatesNotFound(names)
 
    @internalcode

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next