diff --git a/progit/ui/repo.py b/progit/ui/repo.py index d8319c2..750faae 100644 --- a/progit/ui/repo.py +++ b/progit/ui/repo.py @@ -329,7 +329,10 @@ def view_file(repo, identifier, filename, username=None): try: Image.open(filename) output_type = 'image' - except IOError: + except IOError as err: + APP.log.debug( + 'Failed to load image %s, error: %s', filename, err + ) output_type = 'binary' else: output_type = 'binary'