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

Commit 865fee1

Browse files
author
GitHub Revert Action
committed
Revert "return 0 for instead of None"
This reverts commit 4afceab.
1 parent 4afceab commit 865fee1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

RucioClient.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ 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")
9694
except Exception as e:
9795
print(str(e))
98-
return 0
96+
return []
9997
return blocks
10098

0 commit comments

Comments
 (0)