Skip to content

Commit 8f9c294

Browse files
committed
Make sure that stats always has the key "closed"
1 parent 4734de9 commit 8f9c294

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syncrypt/backends/binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def init(self):
776776
self.slots = [BinaryStorageConnection(self) for i in range(self.concurrency)]
777777

778778
def get_stats(self):
779-
states = {}
779+
states = {'closed': 0}
780780
if self.slots:
781781
for conn in self.slots:
782782
states[conn.state] = states.get(conn.state, 0) + 1

0 commit comments

Comments
 (0)