Python Forum
Looking for advice and Guidance on Exceptions used within Functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for advice and Guidance on Exceptions used within Functions
#2
after last exception, add a raise statement to catch any other exceptions and terminate the program

I usually keep the the number of exceptions to one, that being the most likely to happen,
again, after the except, add a raise statement to catch any other exceptions
Reply


Messages In This Thread
RE: Looking for advice and Guidance on Exceptions used within Functions - by Larz60+ - Nov-14-2019, 12:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PiCamera - print exceptions? korenron 2 830 Dec-15-2022, 10:48 PM
Last Post: Larz60+
  Class exceptions DPaul 1 1,291 Mar-11-2022, 09:01 AM
Last Post: Gribouillis
  Need some coding guidance for a task peny 5 2,172 Sep-27-2021, 02:02 PM
Last Post: peny
  is this a good way to catch exceptions? korenron 14 4,708 Jul-05-2021, 06:20 PM
Last Post: hussaind
  Your Guidance caslor 1 2,134 Mar-28-2021, 09:34 PM
Last Post: Larz60+
  Python, exceptions KingKhan248 6 3,034 Nov-15-2020, 06:54 AM
Last Post: buran
  Split string between two different delimiters, with exceptions DreamingInsanity 2 2,018 Aug-24-2020, 08:23 AM
Last Post: DreamingInsanity
  handling 2 exceptions at once Skaperen 2 2,298 Jun-27-2020, 08:55 AM
Last Post: Yoriz
  remove spaces with exceptions catosp 4 2,398 May-29-2020, 09:32 AM
Last Post: catosp
  Noob needing guidance.... bako 0 1,857 Mar-29-2020, 06:55 PM
Last Post: bako

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020