You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# user/internal.py
from .services import UserService
def get_user():
try:
UserService.get_user()
except SomeIntegrationError:
# Do something
# artists/interfaces.py
from user.apis import UserAPI
def get_user():
return UserAPI.get_user()
What do you guys think it's the best way to handle this situation?
I'm thinking of just raise an exception on internal.py and ignore that we should return a Json or we could return a dict with an error key and check on interfaces if that key exists and then handle the error there. But I don't like either option.