Skip to content

Commit

Permalink
Fix: OSError instead of WindowsError
Browse files Browse the repository at this point in the history
  • Loading branch information
cgars committed Jan 22, 2016
1 parent 4ca5171 commit a19f1c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ToLsTOy/gui.py
Expand Up @@ -12,7 +12,6 @@
import tkFileDialog
import copy
import os
from twisted.python.win32 import WindowsError

import led_control

Expand Down Expand Up @@ -346,7 +345,7 @@ class dummy:
root = Tk()
try:
io = ctypes.windll.LoadLibrary('PCI-Dask')
except(AttributeError, WindowsError):
except(AttributeError, OSError):
io = mock.MagicMock()
tkMessageBox.showwarning("Hardware Error",
"Could not initialize Hardware - Switched to Simulation mode"
Expand Down

0 comments on commit a19f1c7

Please sign in to comment.