Skip to content

Unable to export #27

@cwebberOps

Description

@cwebberOps

I keep hitting an exception:

Traceback (most recent call last):
  File "exportiphoto.py", line 635, in <module>
    library.walk([copyImage])
  File "exportiphoto.py", line 304, in walk
    func(imageId, targetFileDir, folderDate)
  File "exportiphoto.py", line 629, in copyImage
    library.copyImage(imageId, folderName, folderDate)
  File "exportiphoto.py", line 359, in copyImage
    basename = os.path.basename(mFilePath)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 112, in basename
AttributeError: 'NoneType' object has no attribute 'rfind'

After a bit of digging, mFilePath on line 359 comes up as None. I would like to just skip these entries but I am not really sure how. Any suggestions on how to cleanly move on to the next image from this point in the code would be super helpful.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions