~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/views.py

ivle.webapp.base.views.JSONRestView: Don't render anything if None is
    returned.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        if req.method == 'PUT':
61
61
            outjson = self.PATCH(req, cjson.decode(req.read()))
62
62
        req.content_type = self.content_type
63
 
        req.write(cjson.encode(outjson))
64
 
        req.write("\n")
 
63
        if outjson is not None:
 
64
            req.write(cjson.encode(outjson))
 
65
            req.write("\n")