Skip to content

Commit

Permalink
client.py: avoid an exception when no new remote packs were generated.
Browse files Browse the repository at this point in the history
This is probably pretty rare, but it can happen if you needed to download a
remote index, and that index had *all* your objects, so we did end up
writing some objects to the remote server, but it didn't end up generating
any packs.  If that happened, we would try to return the contents of a
nonexistent variable.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
  • Loading branch information
apenwarr committed Feb 3, 2011
1 parent 33a2251 commit d3347a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bup/client.py
Expand Up @@ -222,6 +222,7 @@ def _suggest_packs(self):
self.check_ok()
if ob:
self._busy = None
idx = None
for idx in suggested:
self.sync_index(idx)
git.auto_midx(self.cachedir)
Expand Down

0 comments on commit d3347a6

Please sign in to comment.