• Home
  • Raw
  • Download

Lines Matching full:except

92    ...     except ValueError:
99 :keyword:`except` keywords) is executed.
101 * If no exception occurs, the *except clause* is skipped and execution of the
106 :keyword:`except` keyword, the except clause is executed, and then execution
109 * If an exception occurs which does not match the exception named in the except
114 A :keyword:`try` statement may have more than one except clause, to specify
117 in other handlers of the same :keyword:`try` statement. An except clause may
120 ... except (RuntimeError, TypeError, NameError):
123 A class in an :keyword:`except` clause is compatible with an exception if it is
125 except clause listing a derived class is not compatible with a base class). For
140 except D:
142 except C:
144 except B:
147 Note that if the except clauses were reversed (with ``except B`` first), it
148 would have printed B, B, B --- the first matching except clause is triggered.
150 The last except clause may omit the exception name(s), to serve as a wildcard.
161 except OSError as err:
163 except ValueError:
165 except:
169 The :keyword:`try` ... :keyword:`except` statement has an optional *else
170 clause*, which, when present, must follow all except clauses. It is useful for
177 except OSError:
186 :keyword:`except` statement.
192 The except clause may specify a variable after the exception name. The
201 ... except Exception as inst:
228 ... except ZeroDivisionError as err:
260 ... except NameError:
347 :keyword:`except` clause (or it has occurred in an :keyword:`except` or
357 ... except ZeroDivisionError:
379 :keyword:`except` clause and therefore re-raised after the :keyword:`finally`