Is there a way in python to turn a try/except into a single line?
something like...
b = \'some variable\'
a = c | b #try statement goes here
<
Works on Python3, inspired by Walter Mundt
exec("try:some_problematic_thing()\nexcept:pass")
For mulitiples lines into one line
exec("try:\n\tprint('FirstLineOk')\n\tsome_problematic_thing()\n\tprint('ThirdLineNotTriggerd')\nexcept:pass")
Ps: Exec is unsafe to use on data you don't have control over.