Merge branch 'release/1.5.2' into develop
Added missing variable which caused exception when file raised IOError. Fixes #7
Merge pull request #8 from jarekps/issue_7

Added missing variable which caused exception when file raised IOError. Fixes #7
Fix UnboundLocalError.
Update version.
:x