/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/git/dir.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-05-28 20:40:34 UTC
  • mfrom: (7295.2.1 lgtm)
  • Revision ID: breezy.the.bot@gmail.com-20190528204034-cmdcwo3qib3k5zsx
Fix some issues reported by lgtm.com.

Merged from https://code.launchpad.net/~jelmer/brz/lgtm/+merge/365991

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
        for ref in self.get_refs_container().keys():
274
274
            try:
275
275
                branch_name = ref_to_branch_name(ref)
276
 
            except ValueError:
277
 
                continue
278
276
            except UnicodeDecodeError:
279
277
                trace.warning("Ignoring branch %r with unicode error ref", ref)
280
278
                continue
 
279
            except ValueError:
 
280
                continue
281
281
            ret[branch_name] = self.open_branch(ref=ref)
282
282
        return ret
283
283