/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

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