defining user exceptions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CSUIDL PROGRAMMEr

    #1

    defining user exceptions

    I am trying to write a user defined exception that will catch for
    failed dependencies when a rpm is installed

    try:
    rpm -ivh xxx.rpm --force;
    except RPMError:
    print RPM failed dependency


    Can some one tell me how to define this RPMError. I looked at python
    docs but they were not useful.

  • Michael Hoffman

    #2
    Re: defining user exceptions

    CSUIDL PROGRAMMEr wrote:
    I am trying to write a user defined exception that will catch for
    failed dependencies when a rpm is installed
    >
    try:
    rpm -ivh xxx.rpm --force;
    except RPMError:
    print RPM failed dependency
    >
    >
    Can some one tell me how to define this RPMError. I looked at python
    docs but they were not useful.

    --
    Michael Hoffman

    Comment

    Working...