IndexError: list index out of range
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PHImage |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I'm excited by the prospect of PHImage and hope it continues to be developed. I may contribute myself if you are looking for extra resource.
I checked out the branch from bzr and installed pyopengl using easy_install (python 2.5).
Initially all I was getting was this:
user@opensusede
Traceback (most recent call last):
File "./phimage", line 519, in <module>
test = phimage()
File "./phimage", line 108, in __init__
self.main()
File "./phimage", line 516, in main
self.
File "./phimage", line 299, in InitGL
test = textureLoader(
File "./phimage", line 461, in nextFile
return self.workingPath + "/" + self.files[
IndexError: list index out of range
user@opensusede
It turns out I was running it in a directory that had no photos in it.
It would be good if it returned a nice error message if there were no images in the current directory.
Regards,
Brett