omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    IndexError in photos.pick_image()

    Editorial
    photos bug report bug
    1
    1
    1499
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • blalor
      blalor last edited by blalor

      There are two bugs in photos.pick_image(), and I can't seem to find a workaround. With no arguments, it raises an IndexError when picking a single image. With multi=True it returns an empty list. This is with Editorial 1.3.

      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/var/containers/Bundle/Application/85C0192E-EE40-403C-9D82-53F2B569DD40/Editorial.app/Frameworks/Py2Kit.framework/pylib/site-packages/photos.py", line 46, in pick_image
          return return_list[0]
      IndexError: list index out of range
      >>> photos.pick_image(multi=True)
      []
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors