Python - Exception Handling

From PeformIQ Upgrade
Revision as of 10:34, 29 May 2008 by PeterHarding (talk | contribs) (New page: =Overview= <pre> try: out = open(data_file, 'w') except: print "XXX" sys.exit(0) </pre> Category:Python)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

   try:
      out = open(data_file, 'w')
   except: 
      print "XXX"
      sys.exit(0)