Revision 406968dc
b/snf-cyclades-app/synnefo/api/util.py | ||
---|---|---|
144 | 144 |
if non_suspended and vm.suspended: |
145 | 145 |
raise faults.Forbidden("Administratively Suspended VM") |
146 | 146 |
return vm |
147 |
except ValueError:
|
|
147 |
except (ValueError, TypeError):
|
|
148 | 148 |
raise faults.BadRequest('Invalid server ID.') |
149 | 149 |
except VirtualMachine.DoesNotExist: |
150 | 150 |
raise faults.ItemNotFound('Server not found.') |
Also available in: Unified diff