“Python Get Message Exception” Respostas de código

Python Obtenha mensagem de exceção

try:
    with open(filepath,'rb') as f:
        con.storbinary('STOR '+ filepath, f)
    logger.info('File successfully uploaded to '+ FTPADDR)
except Exception as e: # work on python 3.x
    logger.error('Failed to upload to ftp: '+ str(e))
Frightened Fox

Python Get Message Exception

str(your_exception)
Grotesque Guanaco

Respostas semelhantes a “Python Get Message Exception”

Perguntas semelhantes a “Python Get Message Exception”

Mais respostas relacionadas para “Python Get Message Exception” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código