fix error when search does not return 'year'
changed to follow PEP80
Merge pull request #5 from martinwiboe/master

fix error when search does not return 'year'