Python: try-except as an Expression?
<p>I find myself having this sort of pattern over and over:</p>

<pre><code>variable = ""
try:
    variable = ... do some file loading stuff ...
except:
    variable = ""
</code></pre>

<p>Is there any way to condense this into a single expression? Like with if-else statements you can turn:</p>

<pre><code>variable = ""
if something:
    variable = somethingelse
else:
    variable = ""
</code></pre>

<p>into</p>

<pre><code>variable = somethingelse if something else ""
</code></pre>

<p>Is there any equivalent thing for try-catch?</p>
