Doesn't work on Linux:
PHP Code:
global name 'WindowsError' is not defined
Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 88, in run
File "calibre_plugins.koboutilities.jobs", line 223, in do_device_database_backup
File "calibre_plugins.koboutilities.jobs", line 155, in backup_file
NameError: global name 'WindowsError' is not defined
This should work:
PHP Code:
try :
WindowsError
except NameError:
class WindowsError(OSError): pass