diff --git a/src/calibre/gui2/actions/add.py b/src/calibre/gui2/actions/add.py index b44458a2f9..d833efcb78 100644 --- a/src/calibre/gui2/actions/add.py +++ b/src/calibre/gui2/actions/add.py @@ -127,7 +127,7 @@ class AddAction(InterfaceAction): path = url.toLocalFile() if os.access(path, os.R_OK): mt = guess_type(path)[0] - if mt.startswith('image/'): + if mt and mt.startswith('image/'): images.append(path) else: files_to_add.append(path)