Author PashaWNN
Recipients PashaWNN, martin.panter
Date 2018-12-10.04:17:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It's redundant to raise and then catch exception.

I mean:
if len(query) and not isinstance(query[0], tuple):
    ty, va, tb = sys.exc_info()
    raise TypeError("not a valid non-string sequence "
                    "or mapping object").with_traceback(tb)

Would be more clean.
Date User Action Args
2018-12-10 04:17:07PashaWNNsetrecipients: + PashaWNN, martin.panter
2018-12-10 04:17:07PashaWNNsetmessageid: <>
2018-12-10 04:17:07PashaWNNlinkissue35447 messages
2018-12-10 04:17:07PashaWNNcreate