ChatGPT - Exceptions in inspect.getmembers