| Conditions | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | class CircularDependencyError(Exception): |
||
| 3 | def __init__(self, bears): |
||
| 4 | """ |
||
| 5 | Creates the CircularDependencyError with a helpful message about the |
||
| 6 | dependency. |
||
| 7 | """ |
||
| 8 | bear_names = (bear.name for bear in bears) |
||
| 9 | super(CircularDependencyError, self).__init__( |
||
| 10 | "Circular dependency detected: " + " -> ".join(bear_names)) |
||
| 11 | |||
| 12 | |||
| 48 |