hid 1.0.8__tar.gz → 1.0.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hid
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: ctypes bindings for hidapi
5
5
  Home-page: https://github.com/apmorton/pyhidapi
6
6
  Author: Austin Morton
@@ -174,7 +174,8 @@ class Device(object):
174
174
  raise ValueError('specify vid/pid or path')
175
175
 
176
176
  if not self.__dev:
177
- raise HIDException('unable to open device')
177
+ err = hidapi.hid_error(0)
178
+ raise HIDException('unable to open device: ' + err)
178
179
 
179
180
  def __enter__(self):
180
181
  return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hid
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: ctypes bindings for hidapi
5
5
  Home-page: https://github.com/apmorton/pyhidapi
6
6
  Author: Austin Morton
@@ -5,7 +5,7 @@ here = os.path.abspath(os.path.dirname(__file__))
5
5
  README = open(os.path.join(here, 'README.md')).read()
6
6
 
7
7
 
8
- version = '1.0.8'
8
+ version = '1.0.9'
9
9
 
10
10
  setup(
11
11
  name='hid',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes