Revision 13b954b0 api/util.py

b/api/util.py
123 123
        return Network.objects.get(name=network, owner=owner)
124 124
    except ValueError:
125 125
        raise BadRequest('Invalid network name.')
126
    except Image.DoesNotExist:
126
    except Network.DoesNotExist:
127 127
        raise ItemNotFound('Network not found.')
128 128

  
129 129

  

Also available in: Unified diff