Revision 2e0916f2 snf-cyclades-app/synnefo/neutron/network_views.py

b/snf-cyclades-app/synnefo/neutron/network_views.py
60 60

  
61 61
    if request.serialization == 'xml':
62 62
        data = render_to_string('list_networks.xml', {
63
            'networks': networks})
63
            "networks": networks})
64 64
    else:
65 65
        data = json.dumps({'networks': networks})
66 66

  
......
212 212
    updatable = set(["name", "admin_state_up"])
213 213
    try:
214 214
        new_vals = info["network"]
215
    except Keyerror:
215
    except KeyError:
216 216
        raise api.faults.BadRequest("Malformed request")
217 217

  
218 218
    for key, val in new_vals.iteritems():

Also available in: Unified diff