Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import/update script exits when it encounters an invalid file #4

Closed
jmathai opened this issue Nov 30, 2015 · 0 comments
Closed

Import/update script exits when it encounters an invalid file #4

jmathai opened this issue Nov 30, 2015 · 0 comments

Comments

@jmathai
Copy link
Owner

jmathai commented Nov 30, 2015

The import/update script recursively gets a listing of files and checks the extension against a list of supported extensions. If a file has a supported extension but does not contain valid data (i.e. is not a picture or movie) then the script exits.

Traceback (most recent call last):
  File "<string>", line 150, in <module>
  File "<string>", line 44, in _import
  File "/......../filesystem.py", line 137, in process_file
  File "/......../media.py", line 243, in get_metadata
  File "/......../media.py", line 143, in get_date_taken
  File "/......../media.py", line 175, in get_exif
  File "/usr/local/Cellar/pyexiv2/0.3.2_1/lib/python2.7/site-packages/pyexiv2/metadata.py", line 107, in read
    self.__image = self._instantiate_image(self.filename)
  File "/usr/local/Cellar/pyexiv2/0.3.2_1/lib/python2.7/site-packages/pyexiv2/metadata.py", line 79, in _instantiate_image
    return libexiv2python._Image(filename)
IOError: /......../Photos/._2012-04-21 17.59.46.jpg: The file contains data of an unknown image type
elodie returned -1
@jmathai jmathai closed this as completed in 47627df Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant