Re: defining user exceptions

2007-04-24 Thread Michael Hoffman
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 looke

defining user exceptions

2007-04-24 Thread CSUIDL PROGRAMMEr
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. -