Changeset 1124

Show
Ignore:
Timestamp:
09/04/03 10:38:56 (21 years ago)
Author:
jalet
Message:

Added an exception catch to ensure clean close of database even in
case of TypeError? too.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pykota

    r1117 r1124  
    2323# 
    2424# $Log$ 
     25# Revision 1.40  2003/09/04 08:38:56  jalet 
     26# Added an exception catch to ensure clean close of database even in 
     27# case of TypeError too. 
     28# 
    2529# Revision 1.39  2003/08/18 16:35:28  jalet 
    2630# New pychecker pass, on the tools this time. 
     
    294298        kotafilter = PyKotaFilter()     
    295299        retcode = main(kotafilter) 
    296     except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError, AttributeError, KeyError, IndexError, ValueError, IOError), msg : 
     300    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError, AttributeError, KeyError, IndexError, ValueError, TypeError, IOError), msg : 
    297301        sys.stderr.write("ERROR : PyKota filter failed (%s)\n" % msg) 
    298302        sys.stderr.flush()