fix for api
This commit is contained in:
@@ -123,7 +123,7 @@ def strokedatajson_v2(request,id):
|
|||||||
logfile.write(request.data['strokedata']+"\n")
|
logfile.write(request.data['strokedata']+"\n")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logfile.write("No data in request.data\n")
|
logfile.write("No data in request.data\n")
|
||||||
except AttributeError:
|
except (AttributeError,TypeError):
|
||||||
logfile.write("No data in request\n")
|
logfile.write("No data in request\n")
|
||||||
checkdata, r = dataprep.getrowdata_db(id=row.id)
|
checkdata, r = dataprep.getrowdata_db(id=row.id)
|
||||||
if not checkdata.empty:
|
if not checkdata.empty:
|
||||||
|
|||||||
Reference in New Issue
Block a user