lachaize / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

Adding avi with ".jpg" extension raises exception #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
... instead I suggest, that the file is ignored in DBPhotos.__addPhoto()

try:
    iii = PhotoCmd(file,
                    needAutoRename=DBPhotos.normalizeName,
                    needAutoRotation=DBPhotos.autorotAtImport,
                   )
except IOError:
    print ("*WARNING* File %s could not be loaded. Maybe it aint an image." % file)
    nodeDir.remove(newNode)
    return None

Original issue reported on code.google.com by florian....@gmail.com on 27 Aug 2010 at 8:55

GoogleCodeExporter commented 9 years ago
Files that can not be imported are now skipped and then listed at the end of 
the import, fixed in r342

Original comment by r...@wallace.gen.nz on 4 Oct 2012 at 10:44