Changeset 1004

Show
Ignore:
Timestamp:
05/28/03 15:51:38 (22 years ago)
Author:
jalet
Message:

Better handling of errors

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pykota

    r1000 r1004  
    2323# 
    2424# $Log$ 
     25# Revision 1.33  2003/05/28 13:51:38  jalet 
     26# Better handling of errors 
     27# 
    2528# Revision 1.32  2003/05/27 23:00:20  jalet 
    2629# Big rewrite of external accounting methods. 
     
    271274 
    272275if __name__ == "__main__" :     
     276    retcode = -1 
    273277    try : 
    274278        retcode = main() 
    275     except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError), msg : 
     279    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError, AttributeError, KeyError, IndexError, ValueError, IOError), msg : 
    276280        sys.stderr.write("ERROR : PyKota filter failed (%s)\n" % msg) 
    277281        sys.stderr.flush() 
    278         retcode = -1 
    279282    sys.exit(retcode)     
    280283