Changeset 409


Ignore:
Timestamp:
Apr 13, 2008, 11:59:50 PM (17 years ago)
Author:
ecprice
Message:

Rename MyException? to something reasonable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/getafsgroups.py

    r408 r409  
    2626#     return False
    2727
    28 class MyException(Exception):
     28class AfsProcessError(Exception):
    2929    pass
    3030
     
    5151                         stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    5252    if p.wait():
    53         raise MyException(p.stderr.read())
     53        raise AfsProcessError(p.stderr.read())
    5454    return p.stdout.read().split()[-1][1:-1]
    5555
     
    5858                         stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    5959    if p.wait():
    60         raise MyException(p.stderr.read())
     60        raise AfsProcessError(p.stderr.read())
    6161    lines = p.stdout.readlines()
    6262    values = []
     
    7979        cell = getCell(locker)
    8080        values = getLockerAcl(locker)
    81     except MyException, e:
     81    except AfsProcessError, e:
    8282        return str(e)
    8383
Note: See TracChangeset for help on using the changeset viewer.