Skip to content
Snippets Groups Projects
Commit 8701ab80 authored by Neda Moeini's avatar Neda Moeini Committed by Neda Moeini
Browse files

Moved exceptions to a general exception module.

parent 51d33a1a
No related branches found
No related tags found
1 merge request!83Clean up the repo a bit, and add some unit tests
Pipeline #84246 passed
......@@ -8,21 +8,9 @@ from pynetbox.models.dcim import Devices, DeviceTypes, Interfaces
from gso.products.product_types.router import Router
from gso.settings import load_oss_params
from gso.utils.device_info import DEFAULT_SITE, FEASIBLE_IP_TRUNK_LAG_RANGE, ROUTER_ROLE, TierInfo
from gso.utils.exceptions import NotFoundError, WorkflowStateError
class NotFoundError(Exception):
"""Exception raised for not found search."""
pass
class WorkflowStateError(Exception):
"""Exception raised on problems during workflow."""
pass
# Define device models
class Manufacturer(pydantic.BaseModel):
"""Defines the manufacturer of a device."""
......
class NotFoundError(Exception):
"""Exception raised for not found search."""
pass
class WorkflowStateError(Exception):
"""Exception raised on problems during workflow."""
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment