• 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
107 continues after the try/except block.
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 not in other handlers of the same :keyword:`!try` statement. An *except clause*
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).
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.
154 The *except clause* may specify a variable after the exception name. The
162 ... except Exception as inst:
203 except OSError as err:
205 except ValueError:
207 except Exception as err:
211 The :keyword:`try` ... :keyword:`except` statement has an optional *else
212 clause*, which, when present, must follow all *except clauses*. It is useful
219 except OSError:
228 :keyword:`!except` statement.
239 ... except ZeroDivisionError as err:
272 ... except NameError:
287 If an unhandled exception occurs inside an :keyword:`except` section, it will
293 ... except OSError:
319 ... except ConnectionError as exc:
338 ... except OSError:
394 clause, the exception may be handled by an :keyword:`except`
395 clause. If the exception is not handled by an :keyword:`!except`
399 * An exception could occur during execution of an :keyword:`!except`
435 ... except ZeroDivisionError:
457 :keyword:`except` clause and therefore re-raised after the :keyword:`!finally`
524 ... except Exception as e:
530 By using ``except*`` instead of ``except``, we can selectively
533 group, each ``except*`` clause extracts from the group exceptions
546 ... except* OSError as e:
548 ... except* SystemError as e:
573 ... except Exception as e:
593 ... except Exception as e:
616 ... except Exception as e: