• Home
  • Raw
  • Download

Lines Matching full:except

98    ...     except ValueError:
105 :keyword:`except` keywords) is executed.
107 * If no exception occurs, the *except clause* is skipped and execution of the
112 :keyword:`except` keyword, the *except clause* is executed, and then execution
113 continues after the try/except block.
115 * If an exception occurs which does not match the exception named in the *except
119 A :keyword:`try` statement may have more than one *except clause*, to specify
122 not in other handlers of the same :keyword:`!try` statement. An *except clause*
125 ... except (RuntimeError, TypeError, NameError):
128 A class in an :keyword:`except` clause matches exceptions which are instances of the
130 *except clause* listing a derived class does not match instances of its base classes).
145 except D:
147 except C:
149 except B:
152 Note that if the *except clauses* were reversed (with ``except B`` first), it
153 would have printed B, B, B --- the first matching *except clause* is triggered.
159 The *except clause* may specify a variable after the exception name. The
167 ... except Exception as inst:
208 except OSError as err:
210 except ValueError:
212 except Exception as err:
216 The :keyword:`try` ... :keyword:`except` statement has an optional *else
217 clause*, which, when present, must follow all *except clauses*. It is useful
224 except OSError:
233 :keyword:`!except` statement.
244 ... except ZeroDivisionError as err:
278 ... except NameError:
294 If an unhandled exception occurs inside an :keyword:`except` section, it will
300 ... except OSError:
329 ... except ConnectionError as exc:
351 ... except OSError:
409 clause, the exception may be handled by an :keyword:`except`
410 clause. If the exception is not handled by an :keyword:`!except`
414 * An exception could occur during execution of an :keyword:`!except`
450 ... except ZeroDivisionError:
476 :keyword:`except` clause and therefore re-raised after the :keyword:`!finally`
546 ... except Exception as e:
552 By using ``except*`` instead of ``except``, we can selectively
555 group, each ``except*`` clause extracts from the group exceptions
577 ... except* OSError as e:
579 ... except* SystemError as e:
609 ... except Exception as e:
631 ... except Exception as e:
655 ... except Exception as e: