Fix NPE bug in RAC worker
We need to return `None`, not `0` if there are no additional repositories to measure
This commit is contained in:
parent
e47ac22012
commit
80693d6b8c
3 changed files with 9 additions and 5 deletions
|
@ -41,7 +41,7 @@ def find_uncounted_repository():
|
|||
.order_by(db_random_func()).get())
|
||||
return to_count
|
||||
except Repository.DoesNotExist:
|
||||
return 0
|
||||
return None
|
||||
|
||||
|
||||
def count_repository_actions(to_count):
|
||||
|
|
Reference in a new issue