On 2019/02/10 16:25, Johannes Berg wrote:
On Sun, 2019-02-10 at 14:30 +0900, Masashi Honma wrote:
+ except IOError as e:
+ if e.errno == errno.EAGAIN:
+ return False
+ raise e
You should (typically) just "raise" instead of "raise e" to re-raise a
caught exception. If you do "raise e", the stacktrace will point to that
rather than the original source of the error.
Thank you, I have not know that.
By my test, "raise e" issue occurs on only python2 environment.
Anyway just "raise" works on both.
I will fix it.
Masashi Honma.
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap