[22:25:24] Anyone know how to subclass python exceptions? I'm trying to make a QueryTimedOut as a subclass of oursql.OperationalError with all attributes. [22:36:29] Dispenser: I think you just subclass them like normal? e.g. https://github.com/wikimedia/pywikibot/blob/master/pywikibot/exceptions.py [23:03:28] legoktm: Looks like that works in this instance. I thought I was missing some extra parameters. There's also calling Super() https://stackoverflow.com/questions/1319615/proper-way-to-declare-custom-exceptions-in-modern-python [23:05:43] Yeah, super() is only needed if you override __init__