Revision a6e6fe48 snf-cyclades-app/synnefo/db/models.py
b/snf-cyclades-app/synnefo/db/models.py | ||
---|---|---|
384 | 384 |
return u"<vm:%s@backend:%s>" % (self.id, self.backend_id) |
385 | 385 |
|
386 | 386 |
# Error classes |
387 |
class InvalidBackendIdError(Exception):
|
|
387 |
class InvalidBackendIdError(ValueError):
|
|
388 | 388 |
def __init__(self, value): |
389 | 389 |
self.value = value |
390 | 390 |
|
... | ... | |
587 | 587 |
free += ip_pool.count_available() |
588 | 588 |
return total, free |
589 | 589 |
|
590 |
class InvalidBackendIdError(Exception):
|
|
590 |
class InvalidBackendIdError(ValueError):
|
|
591 | 591 |
def __init__(self, value): |
592 | 592 |
self.value = value |
593 | 593 |
|
Also available in: Unified diff