this is more a question than a real problem.
I have some code using SOAPpy library in python :
from SOAPpy import SOAPProxy
...
try:
connection = SOAPProxy(settings.SOAP_URL)
session = connection.login(username, password)
user = connection.getUserInfo(session.session_hash, session.user_id)
groups = connection.getGroups(session.session_hash, settings.GROUP_ID)
group = next(group for group in groups.item
if group.name == settings.GROUP_NAME)
next(member for member in group.member.item
if member.user_name == user.username)
except:
return None
...
My question is : Which exception can be raised by this part of code ?
Because a new contributor say that it's more Pythonic to write all exceptions which can be raised.
Best regards, Morony