Changeset 2216

Show
Ignore:
Timestamp:
04/23/05 22:51:03 (19 years ago)
Author:
jerome
Message:

Now exits with no traceback in case of Ctrl+C

Location:
pykota/trunk
Files:
13 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/autopykota

    r2210 r2216  
    126126        else : 
    127127            retcode = automat.main(args, options) 
     128    except KeyboardInterrupt :         
     129        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    128130    except SystemExit :         
    129131        pass 
  • pykota/trunk/bin/dumpykota

    r2210 r2216  
    158158        else : 
    159159            retcode = dumper.main(args, options) 
     160    except KeyboardInterrupt :         
     161        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    160162    except SystemExit :         
    161163        pass 
  • pykota/trunk/bin/edpykota

    r2210 r2216  
    549549        else : 
    550550            retcode = editor.main(args, options) 
     551    except KeyboardInterrupt :         
     552        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    551553    except SystemExit :         
    552554        pass 
  • pykota/trunk/bin/pkbanner

    r2210 r2216  
    325325        else : 
    326326            retcode = banner.main(args, options) 
     327    except KeyboardInterrupt :         
     328        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    327329    except SystemExit :         
    328330        pass 
  • pykota/trunk/bin/pkhint

    r2210 r2216  
    251251                args = [ "*" ] 
    252252            retcode = manager.main(args, options) 
     253    except KeyboardInterrupt :         
     254        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    253255    except SystemExit :         
    254256        pass 
  • pykota/trunk/bin/pkmail

    r2210 r2216  
    173173        else : 
    174174            retcode = mailparser.main(args, options) 
     175    except KeyboardInterrupt :         
     176        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    175177    except SystemExit :         
    176178        pass 
  • pykota/trunk/bin/pkprinters

    r2210 r2216  
    237237        else : 
    238238            retcode = manager.main(args, options) 
     239    except KeyboardInterrupt :         
     240        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    239241    except SystemExit :         
    240242        pass 
  • pykota/trunk/bin/pykosd

    r2210 r2216  
    189189    except KeyboardInterrupt : 
    190190        retcode = 0 
     191    except KeyboardInterrupt :         
     192        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    191193    except SystemExit :         
    192194        pass 
  • pykota/trunk/bin/pykotme

    r2210 r2216  
    147147        else : 
    148148            retcode = sender.main(args, options) 
     149    except KeyboardInterrupt :         
     150        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    149151    except SystemExit :         
    150152        pass 
  • pykota/trunk/bin/repykota

    r2210 r2216  
    158158        else : 
    159159            retcode = reportTool.main(args, options) 
     160    except KeyboardInterrupt :         
     161        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    160162    except SystemExit :         
    161163        pass 
  • pykota/trunk/bin/warnpykota

    r2210 r2216  
    173173        else : 
    174174            retcode = sender.main(args, options) 
     175    except KeyboardInterrupt :         
     176        sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
    175177    except SystemExit :         
    176178        pass 
  • pykota/trunk/NEWS

    r2214 r2216  
    2424    - 1.22alpha8 : 
    2525     
     26        - Ctrl+C now makes PyKota commands exit without a traceback. 
     27         
    2628        - Fixed an i18n problem with Python 2.1 
    2729         
  • pykota/trunk/TODO

    r2215 r2216  
    2222TODO, in no particular order : 
    2323 
    24         - Make Ctrl+C interrupts exit silently instead of exit 
    25           with a traceback. 
    26            
    2724        - Pass-through mode for printers : history correctly filled (including 
    2825          job size) but no impact on user's page counter or account