def __str__(self):
        """ Overrides the default exception message by relying on HelpMsgMixIn """
        try:
            if self.append_details:
                return self.get_help_msg(dotspace_ending=True, **self.__dict__) + self.get_details()
            else:
                return self.get_help_msg(**self.__dict__)
        except HelpMsgFormattingException as f:
            return str(f)
        except Exception as e:
            return "Error while formatting help message: {}".format(e)
def __str__ ( self ) : try : if self . append_details : return self . get_help_msg ( dotspace_ending = True , ** self . __dict__ ) + self . get_details ( ) else : return self . get_help_msg ( ** self . __dict__ ) except HelpMsgFormattingException as f : return str ( f ) except Exception as e : return "Error while formatting help message: {}" . format ( e )
Overrides the default exception message by relying on HelpMsgMixIn