if get_db().view(..).one() returns None then calling value returns an error. fix this
if get_db().view(..).one() returns None then calling value returns an error. fix this

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq