UNCLASSIFIED

Commit 3a861b2e authored by Michael Uranaka's avatar Michael Uranaka
Browse files

Fixing lint errors

parent ed545c98
......@@ -29,4 +29,4 @@ def send_results(results, url):
headers={'content-type': 'application/json'}
)
req.get_method = lambda: 'PATCH'
response = urllib.request.urlopen(req)
urllib.request.urlopen(req)
......@@ -15,7 +15,7 @@ def get_job_args(file_path):
# get the job arguments.
return job['args'][0]['arguments'][0];
except Exception as e:
except IOError as e:
sys.exit("Failed to get job arguments: " + str(e))
......@@ -24,7 +24,7 @@ def write_file(file_path, data):
filehandle = open(file_path, 'w')
filehandle.write(data)
filehandle.close()
except Exception as e:
except IOError as e:
sys.exit("Failed to write file: " + str(e))
......@@ -34,5 +34,5 @@ def read_file(file_path):
data = f.read()
f.close()
return data
except Exception as e:
except IOError as e:
sys.exit("Failed to read file: " + str(e))
Markdown is supported
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