Skip to content

Commit

Permalink
Replace another assert statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Nov 7, 2024
1 parent 5a5f742 commit d43a7bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sdx_pce/topology/temanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,11 @@ def generate_connection_breakdown(
409,
)

assert isinstance(tagged_breakdown, VlanTaggedBreakdowns)
if not isinstance(tagged_breakdown, VlanTaggedBreakdowns):
raise TEError(
f"Validation error: {tagged_breakdown} is not the expected type",
409,
)

# Now it is the time to update the bandwidth of the links after breakdowns are successfully generated
self.update_link_bandwidth(solution, reduce=True)
Expand Down

0 comments on commit d43a7bc

Please sign in to comment.