Lines Matching refs:except
143 except:
146 Python has the ``except:`` clause, which catches all exceptions. Since *every*
147 error in Python raises an exception, using ``except:`` can make many
155 except:
158 The second line triggers a :exc:`NameError`, which is caught by the except
167 except IOError:
173 .. index:: bare except, except; bare
175 Because ``except:`` catches *all* exceptions, including :exc:`SystemExit`,
177 should not normally be caught by user code), using a bare ``except:`` is almost
183 use a bare ``except:`` and manually re-raise the exceptions you don't want
216 except EnvironmentError as err:
231 except SystemExit:
234 But there is a better way. You should try to use as few ``except`` clauses in