defining user exceptions

CSUIDL PROGRAMMEr syedamjad_a at
Tue Apr 24 16:43:35 CEST 2007

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

 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.

More information about the Python-list mailing list