```
else:
    return row
```

is missing here