def __str__(self):
        """Redefine __str__ hook for pretty-printing"""
        return ''.join(['Exception in calling OWM Weather API.', os.linesep,
                       'Reason: ', self._message, os.linesep,
                       'Caused by: ', str(self._triggering_error)])
def __str__ ( self ) : return '' . join ( [ 'Exception in calling OWM Weather API.' , os . linesep , 'Reason: ' , self . _message , os . linesep , 'Caused by: ' , str ( self . _triggering_error ) ] )
Redefine __str__ hook for pretty-printing