Author then0rTh
Recipients mark.dickinson, rhettinger, then0rTh
Date 2016-12-23.15:56:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Passing empty sequence to random.choice function leads to:

Traceback (most recent call last):
ValueError: number of bits must be greater than zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
IndexError: Cannot choose from an empty sequence

* the ValueError doesn't add any useful information, only bloats stderr
* the "During handling" line indicates that something went wrong inside

This patch uses `raise x from None` to hide the ValueError, resulting in much cleaner output.

-Tested on Python 3.7.0a0
Date User Action Args
2016-12-23 15:56:58then0rThsetrecipients: + then0rTh, rhettinger, mark.dickinson
2016-12-23 15:56:58then0rThsetmessageid: <>
2016-12-23 15:56:57then0rThlinkissue29055 messages
2016-12-23 15:56:57then0rThcreate