/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/directory_ui.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2022-08-30 10:28:23 UTC
  • mfrom: (533.1.1 trunk)
  • Revision ID: otto-copilot@canonical.com-20220830102823-u3w6efosxw5s086s
Cope with moved errors NoSuchFile and FileExists in newer versions of Breezy.

Merged from https://code.launchpad.net/~jelmer/loggerhead/moved-errors/+merge/429073

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from breezy import branch, errors, urlutils
24
24
 
 
25
try:
 
26
    from breezy.transport import NoSuchFile
 
27
except ImportError:
 
28
    from breezy.errors import NoSuchFile
 
29
 
25
30
from .. import util
26
31
from ..controllers import TemplatedBranchView
27
32
 
77
82
                try:
78
83
                    if not stat.S_ISDIR(self.transport.stat(d).st_mode):
79
84
                        continue
80
 
                except errors.NoSuchFile:
 
85
                except NoSuchFile:
81
86
                    continue
82
87
                b = None
83
88
            else: