Coverage remained the same at 78.177% when pulling b364f3c0a64980206bba5e5325fe44f63158df83 on andylolz:divide-by-zero into 4f1dada1a1e864ce900d4fb7301c4e453081dbc7 on IATI:master.
@andylolz approving and merging what I can now but these changes don't get pulled to the dev Datastore until at least midweek as I temporarily don't have access to the servers
If
Activity.query.count()
is zero, you get a divide by zero error when runningiati crawl status
. This checks and avoids it.NB try/except might be more pythonic here, but this does the trick.EDIT I’ve redone it with try/except.