~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-29 20:24:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2062.
  • Revision ID: john@arbash-meinel.com-20060929202437-b96f6064b8ad4ab6
Switch extract_email_address() to use a more specific exception

Show diffs side-by-side

added added

removed removed

Lines of Context:
1909
1909
        # display a warning if an email address isn't included in the given name.
1910
1910
        try:
1911
1911
            config.extract_email_address(name)
1912
 
        except BzrError, e:
 
1912
        except errors.NoEmailInUsername, e:
1913
1913
            warning('"%s" does not seem to contain an email address.  '
1914
1914
                    'This is allowed, but not recommended.', name)
1915
1915