Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I have my jobs running from a HPC manager. I want to capture when the (slurm, qsub, condor) manager does an exit (to email myself about it with my custom email). Will except: catch that? But it doesn't give me a handle for e though :( Commented Sep 29, 2020 at 15:23
  • 2
    except Exception, error:^SyntaxError: invalid syntax Commented Mar 11, 2021 at 16:51
  • 2
    @Tony try: except Exception as error: -- If you're running Python3. Commented Aug 3, 2021 at 18:53