Previously we'd throw a (probably harmless other than ugly output)
exception in this case.
log('bup server: received %d object%s.\n'
% (w.count, w.count!=1 and "s" or ''))
fullpath = w.close()
- (dir, name) = os.path.split(fullpath)
- conn.write('%s.idx\n' % name)
+ if fullpath:
+ (dir, name) = os.path.split(fullpath)
+ conn.write('%s.idx\n' % name)
conn.ok()
return
elif n == 0xffffffff:
self.objcache = None
if self.onclose:
self.onclose()
- if self.suggest_pack:
+ if id and self.suggest_pack:
self.suggest_pack(id)
return id