/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Lukáš Lalinský
  • Date: 2007-12-17 17:23:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3123.
  • Revision ID: lalinsky@gmail.com-20071217172321-p8z2a519ia3sdbwx
Don't subclass dict in Template and raise an error on missing variable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2446
2446
        display_url = urlutils.unescape_for_display(
2447
2447
            tree.bzrdir.root_transport.base, 'ascii')
2448
2448
        BzrError.__init__(self, tree=tree, display_url=display_url)
 
2449
 
 
2450
class MissingTemplateVariable(BzrError):
 
2451
 
 
2452
    _fmt = 'Variable {%(name)s} is not available.'
 
2453
 
 
2454
    def __init__(self, name):
 
2455
        self.name = name