defining user exceptions

CSUIDL PROGRAMMEr syedamjad_a at yahoo.com
Tue Apr 24 10:43:35 EDT 2007


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.




More information about the Python-list mailing list