Is there a reason that this is not written as:

<pre>
if not (...):
   raise ...
</pre>

rather than:

<pre>
if ...
   pass
else:
   raise ...
</pre>