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

Commit 0433bd8

Browse files
committed
0 instead of None
1 parent 8fb57fc commit 0433bd8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

RucioClient.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def getFileCountBlock(self, block):
7575
"""
7676
try:
7777
numFiles = self.get_metadata(self.scope, block)['length']
78+
if numFiles is None:
79+
raise Exception("block length in rucio is None")
7880
except Exception as e:
7981
print(str(e))
8082
return 0

0 commit comments

Comments
 (0)