Changeset 975 for pykota/trunk/bin

Show
Ignore:
Timestamp:
04/30/03 00:03:38 (22 years ago)
Author:
jalet
Message:

Better error handling.

Location:
pykota/trunk/bin
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r952 r975  
    2323# 
    2424# $Log$ 
     25# Revision 1.44  2003/04/29 22:03:38  jalet 
     26# Better error handling. 
     27# 
    2528# Revision 1.43  2003/04/23 22:13:56  jalet 
    2629# Preliminary support for LPRng added BUT STILL UNTESTED. 
     
    167170from pykota import version 
    168171from pykota.tool import PyKotaTool, PyKotaToolError 
     172from pykota.config import PyKotaConfigError 
     173from pykota.storage import PyKotaStorageError 
    169174 
    170175__doc__ = """edpykota v%s (C) 2003 C@LL - Conseil Internet & Logiciels Libres 
     
    530535        else : 
    531536            sys.exit(editor.main(args, options)) 
    532     except PyKotaToolError, msg :             
     537    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError), msg :             
    533538        sys.stderr.write("%s\n" % msg) 
    534539        sys.stderr.flush() 
  • pykota/trunk/bin/pykota

    r973 r975  
    2323# 
    2424# $Log$ 
     25# Revision 1.30  2003/04/29 22:03:38  jalet 
     26# Better error handling. 
     27# 
    2528# Revision 1.29  2003/04/29 18:37:54  jalet 
    2629# Pluggable accounting methods (actually doesn't support external scripts) 
     
    136139 
    137140from pykota.tool import PyKotaTool, PyKotaToolError 
     141from pykota.config import PyKotaConfigError 
    138142from pykota.storage import PyKotaStorageError 
    139143from pykota.accounter import openAccounter, PyKotaAccounterError 
     
    273277    try : 
    274278        retcode = main() 
    275     except (PyKotaToolError, PyKotaStorageError, PyKotaAccounterError), msg : 
     279    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError), msg : 
    276280        sys.stderr.write("ERROR : PyKota filter failed (%s)\n" % msg) 
    277281        sys.stderr.flush() 
  • pykota/trunk/bin/repykota

    r970 r975  
    2323# 
    2424# $Log$ 
     25# Revision 1.34  2003/04/29 22:03:38  jalet 
     26# Better error handling. 
     27# 
    2528# Revision 1.33  2003/04/28 08:25:48  jalet 
    2629# Small display bug in repykota was fixed. 
     
    133136from pykota import version 
    134137from pykota.tool import PyKotaTool, PyKotaToolError 
     138from pykota.config import PyKotaConfigError 
     139from pykota.storage import PyKotaStorageError 
    135140 
    136141__doc__ = """repykota v%s (C) 2003 C@LL - Conseil Internet & Logiciels Libres 
     
    303308        else : 
    304309            sys.exit(reporter.main(options)) 
    305     except PyKotaToolError, msg :             
     310    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError), msg :             
    306311        sys.stderr.write("%s\n" % msg) 
    307312        sys.stderr.flush() 
  • pykota/trunk/bin/warnpykota

    r952 r975  
    2323# 
    2424# $Log$ 
     25# Revision 1.19  2003/04/29 22:03:38  jalet 
     26# Better error handling. 
     27# 
    2528# Revision 1.18  2003/04/23 22:13:56  jalet 
    2629# Preliminary support for LPRng added BUT STILL UNTESTED. 
     
    8487from pykota import version 
    8588from pykota.tool import PyKotaTool, PyKotaToolError 
     89from pykota.config import PyKotaConfigError 
     90from pykota.storage import PyKotaStorageError 
    8691 
    8792__doc__ = """warnpykota v%s (C) 2003 C@LL - Conseil Internet & Logiciels Libres 
     
    187192        else : 
    188193            sys.exit(sender.main(options)) 
    189     except PyKotaToolError, msg :             
     194    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError), msg :             
    190195        sys.stderr.write("%s\n" % msg) 
    191196        sys.stderr.flush()