python-tdbus icon indicating copy to clipboard operation
python-tdbus copied to clipboard

Python3 branches segfault when None is given for 's' format in return message.

Open hmvp opened this issue 10 years ago • 0 comments

This gives strange results:

try:
    connection.send_method_return(message, 's', [None])
    logger.error('x')
except Exception as e:
    # Format might be wrong with the arguments (often when an argument is None)
    logger.error('s')

    logger.exception(e)
try:
    connection.send_method_return(message, 's', [None])
    logger.error('x2')
except Exception as e:
    logger.error('s2')
    logger.exception(e)

hmvp avatar Aug 27 '15 09:08 hmvp