Python Forum
is try/except safe inside of another except?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is try/except safe inside of another except?
#3
i mean something like:
    try:
        ... something that could raise an exception
    except the_exception_to_deal_with:
        try:
            ... the handler that could raise a different exception
        except the_different_exception:
            ... the handler for the 2nd exception
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: is try/except safe inside of another except? - by Skaperen - Aug-04-2019, 05:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  When is it safe to compare (==) two floats? Radical 4 2,451 Nov-12-2023, 11:53 AM
Last Post: PyDan
  is it safe to close stdin Skaperen 1 3,750 Apr-04-2019, 06:57 AM
Last Post: Gribouillis
  how this to make a asyncio thread safe? linziyan 0 2,994 Jun-07-2018, 10:33 AM
Last Post: linziyan
  Is it safe to use outside a class created inside the function? oneroslavsky 2 3,607 Dec-27-2017, 01:10 AM
Last Post: mpd

Forum Jump:

User Panel Messages

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