Python Forum
looking for a custom exception
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking for a custom exception
#2
What happens when you try the above? The except line should have a colon, so this doesn't seem runnable.

Is verify code: some placeholder? What are you actually calling?

First I'd check if the library is throwing something that can actually be caught (as opposed to exiting). If you replace the except with just a bare except:, does it run the exception block?
Reply


Messages In This Thread
looking for a custom exception - by JarredAwesome - Sep-21-2020, 02:26 AM
RE: looking for a custom exception - by bowlofred - Sep-21-2020, 04:00 AM
RE: looking for a custom exception - by buran - Sep-21-2020, 05:25 AM
RE: looking for a custom exception - by buran - Sep-21-2020, 05:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  custom exception dcr 1 317 Feb-17-2024, 08:19 PM
Last Post: Gribouillis
  problem using custom exception handling in python srm 3 3,094 Jul-03-2019, 09:10 PM
Last Post: ichabod801
  During handling of the above exception, another exception occurred Skaperen 7 26,989 Dec-21-2018, 10:58 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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