Changeset 887

Show
Ignore:
Timestamp:
12/04/2007 05:21:56 AM (13 months ago)
Author:
chris
Message:

Replaced deprecated string exceptions with objects sub-classed from Exception.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • eddie/trunk/lib/common/eddieElvin4.py

    r862 r887  
    6868################################################################ 
    6969## Exceptions: 
    70 ElvinError = 'ElvinError' 
    71 ElvinInitError = 'ElvinInitError' 
     70class ElvinError(Exception): 
     71    pass 
     72 
     73class ElvinInitError(Exception): 
     74    pass 
    7275 
    7376 
     
    121124        global UseElvin 
    122125        if UseElvin == 0: 
    123             raise ElvinInitError, "Elvin modules not found" 
     126            raise ElvinInitError("Elvin modules not found") 
    124127 
    125128        if not ELVINURL and not ELVINSCOPE: 
    126129            UseElvin = 0 
    127             raise ElvinInitError, "Elvin administratively disabled" 
     130            raise ElvinInitError("Elvin administratively disabled") 
    128131 
    129132        self.eq = Queue.Queue()                # Elvin message queue