Fix error with empty list in nova.py