Code review comments for PhotoRec module
switch to diamond inference
use built-in empty list, remove nested try block
Merge pull request #935 from karlmortensen/code_review_comments_photorec

Code review comments for PhotoRec module