/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: Canonical.com Patch Queue Manager
  • Date: 2006-05-20 17:54:41 UTC
  • mfrom: (1551.6.23 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20060520175441-bcafeb0b1c8ba6f1
Added None to getattr for case where error doesn't has have path

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
... except:
35
35
...   print sys.exc_type
36
36
...   print sys.exc_value
37
 
...   path = getattr(sys.exc_value, 'path')
 
37
...   path = getattr(sys.exc_value, 'path', None)
38
38
...   if path is not None:
39
39
...     print path
40
40
bzrlib.errors.NotBranchError