Skip to content
Snippets Groups Projects
Commit b6d2f191 authored by developer7's avatar developer7
Browse files

ver 4.0.3.1

add 'resource busy' in GetHandler->do_POST();
parent 0516e8fb
No related merge requests found
...@@ -152,13 +152,13 @@ class GetHandler(BaseHTTPRequestHandler): ...@@ -152,13 +152,13 @@ class GetHandler(BaseHTTPRequestHandler):
self.wfile.write(output) self.wfile.write(output)
if len(HND_LIST) == 0: if len(HND_LIST) == 0:
self.wfile.write("\n>> NO DEVICES FOUND \n" ) self.wfile.write("\n>> NO DEVICES FOUND (or resource busy) \n " )
return return
if not device.isdigit(): if not device.isdigit():
dev.hnd = HND_LIST[0] dev.hnd = HND_LIST[0]
elif int(device) > len(HND_LIST) or int(device) == 0: elif int(device) > len(HND_LIST) or int(device) == 0:
self.wfile.write("dev[%s] : NO DEVICE FOUND " % device) self.wfile.write("dev[%s] : NO DEVICE FOUND (or resource busy)" % device)
return return
else: else:
dev.hnd = HND_LIST[int(device) -1] dev.hnd = HND_LIST[int(device) -1]
......
shell @ 1ad5c25e
Subproject commit 34de84a310f56c39e6d4c1b46244006e7c91f911 Subproject commit 1ad5c25efec65f2b4422b0488e4f63b25752f751
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment