On 08/15/11 07:41, Darren Kenny wrote:
Hi,
I'm going to write some code to handle an CatalogRefreshException, and I'm
wondering if there is any way to intentionally cause a CatalogRefreshException
to occur?
You can reproduce by adding a publisher with an http origin that isn't
actually a repository using add_publisher(..., refresh_allowed=False).
Then call refresh_publishers().
Specifically I'm looking at bug 7057702 and would like to be able to print
something more about the details of that exception since it doesn't seem to
implement a useable __str__() like most other exceptions in the IPS API
(anyone able to tell me why?).
Historical reasons that no longer apply. It's something that should be
changed, but hasn't been gotten to yet.
I'm considering mirroring (almost, but not completely) what is in the client.py
file in the method display_catalog_failures().
That's the best option for the moment.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss