Renamed function param to 'row', fixed UnboundLocalError
Created originally on Bitbucket by yaroslavprogrammer (Yaroslav Rudenok)
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.