UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
G
Galvanize
galvanize
python-code-evaluator
Commits
3a861b2e
Commit
3a861b2e
authored
Feb 01, 2021
by
Michael Uranaka
Browse files
Fixing lint errors
parent
ed545c98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
scripts/services/results_service.py
scripts/services/results_service.py
+1
-1
scripts/utilities/file_utils.py
scripts/utilities/file_utils.py
+3
-3
No files found.
scripts/services/results_service.py
View file @
3a861b2e
...
...
@@ -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
)
scripts/utilities/file_utils.py
View file @
3a861b2e
...
...
@@ -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
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment