close filehandle
This commit is contained in:
parent
cb596e8f60
commit
03e755b91f
@ -182,7 +182,8 @@ class driver(inputDriver):
|
|||||||
continue
|
continue
|
||||||
self.env['runtime']['debug'].writeDebugOut('open(deviceFile)',debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut('open(deviceFile)',debug.debugLevel.ERROR)
|
||||||
try:
|
try:
|
||||||
open(deviceFile)
|
with open(deviceFile) as f:
|
||||||
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.env['runtime']['debug'].writeDebugOut("Not readable Inputdevice : " + deviceFile +' ' + str(e),debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut("Not readable Inputdevice : " + deviceFile +' ' + str(e),debug.debugLevel.ERROR)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user