/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 breezy/ignores.py

  • Committer: Jelmer Vernooij
  • Date: 2019-11-09 18:59:38 UTC
  • mto: (7290.1.40 work)
  • mto: This revision was merged to the branch mainline in revision 7414.
  • Revision ID: jelmer@jelmer.uk-20191109185938-moh2ekmeoqe4yxds
Don't fail when unable to write per-user ignore list due to one of the intermediate directories not existing

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        # since get_* should be a safe operation
102
102
        try:
103
103
            _set_user_ignores(USER_DEFAULTS)
104
 
        except (IOError, OSError) as e:
105
 
            if e.errno not in (errno.EPERM,):
 
104
        except EnvironmentError as e:
 
105
            if e.errno not in (errno.EPERM, errno.ENOENT):
106
106
                raise
107
107
        return patterns
108
108