Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 4afceab

Browse files
committed
return 0 for instead of None
1 parent bf5dc7a commit 4afceab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

RucioClient.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ def getFileCountPerBlock(self, dataset):
9191
blocks = []
9292
for block in self.getBlockNamesDataset(dataset):
9393
blocks.append((block, self.getFileCountBlock(block)))
94+
if blocks is None:
95+
raise Exception("number of file count per block is None")
9496
except Exception as e:
9597
print(str(e))
96-
return []
98+
return 0
9799
return blocks
98100

0 commit comments

Comments
 (0)