'WindowsError' is not defined /examples/submenus.html

Forum for reporting bugs in the library
buffalo
Posts: 44
Joined: Thu Feb 25, 2016 10:34 am

'WindowsError' is not defined /examples/submenus.html

Postby buffalo » Fri Jun 16, 2017 8:39 pm

http://www.thorpy.org/examples/submenus.html
(crash with Linux)

Code: Select all

<thorpy.elements.box.Box object at 0x7f16086b12e8>
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/thorpy/elements/browserlight.py", line 120, in _get_folders_and_files
    titles = listdir(self.path)
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "menu.py", line 26, in <module>
    file_browser = thorpy.Browser.make(path="C:/Users/", text="Please have a look.")
  File "/usr/local/lib/python3.5/dist-packages/thorpy/elements/browser.py", line 22, in make
    file_types=file_types, text=text)
  File "/usr/local/lib/python3.5/dist-packages/thorpy/elements/browser.py", line 52, in __init__
    actual_folders, actual_files = self._get_folders_and_files()
  File "/usr/local/lib/python3.5/dist-packages/thorpy/elements/browserlight.py", line 121, in _get_folders_and_files
    except WindowsError:
NameError: name 'WindowsError' is not defined

ThorPy
Site Admin
Posts: 21
Joined: Wed May 13, 2015 9:44 pm

Re: 'WindowsError' is not defined /examples/submenus.html

Postby ThorPy » Sun Jun 18, 2017 9:54 pm

Thank you for the report, this will be fixed in the next version.


Return to “Bug Tracking”

Who is online

Users browsing this forum: No registered users and 1 guest