proper exception type in service.py