Re: [Xen-devel] [PATCH] python: do not report handled EAGAIN error

2019-08-21 Thread Wei Liu
On Tue, Aug 20, 2019 at 04:12:41AM +0200, Marek Marczykowski-Górecki wrote: > match_watch_by_token() when returns an error, sets also exception within > python. This is generally the right thing to do, but when > xspy_read_watch() handle EAGAIN error internally, the exception needs to > be

[Xen-devel] [PATCH] python: do not report handled EAGAIN error

2019-08-19 Thread Marek Marczykowski-Górecki
match_watch_by_token() when returns an error, sets also exception within python. This is generally the right thing to do, but when xspy_read_watch() handle EAGAIN error internally, the exception needs to be cleared. Otherwise it will fail like this: xen.lowlevel.xs.Error: (11, 'Resource