I have read various threads on the subject but have not found an answer( or I do not understand the problem)
The case looks like this: main.py:
from a import aa
aa()
a.py
from b import bb
from c import cc
class aError(Exeption):
...
def aa():
try:
bb()
cc()
except aError:
...
...
b.py
from a import aError
class bError(aError):
...
def bb():
raise bError
...
c.py
from a import aError
class cError(aError):
...
def cc():
raise cError
...
as you can see, I have circular import a -> b/c -> a. Is there any nice way to solve this problem without throwing aError
from a.py ?