projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleanup REST api
[osm/vim-emu.git]
/
src
/
emuvim
/
api
/
rest
/
compute.py
diff --git
a/src/emuvim/api/rest/compute.py
b/src/emuvim/api/rest/compute.py
index
f8da428
..
e412133
100755
(executable)
--- a/
src/emuvim/api/rest/compute.py
+++ b/
src/emuvim/api/rest/compute.py
@@
-52,7
+52,9
@@
class ComputeStart(Resource):
try:
#check if json data is a dict
data = request.json
- if type(data) is not dict:
+ if data is None:
+ data = {}
+ elif type(data) is not dict:
data = json.loads(request.json)
network = data.get("network")