<div dir="ltr"><div><div><div><div><div><div>Hi David,<br><br></div>beside from Charles questions, could you please also have a look at pynut2:<br><a href="https://github.com/george2/python-nut2">https://github.com/george2/python-nut2</a><br>
<br></div>I'm not sure how to contact george2 (the author), but it would be great if you could discuss a bit python and NUT here...<br></div>i.e, what george's patches are bringing, your view on this and how all this could converge.<br>
<br></div>hope you're doing fine otherwise...<br></div>cheers,<br></div>arno<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-04 4:20 GMT+02:00 Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
Any thoughts on either this pull request, or #129?<br>
<br>
<a href="https://github.com/networkupstools/nut/pull/128" target="_blank">https://github.com/networkupstools/nut/pull/128</a><br>
<a href="https://github.com/networkupstools/nut/pull/129" target="_blank">https://github.com/networkupstools/nut/pull/129</a><br>
<br>
Also note the mention of the new Python module here:<br>
<br>
<a href="https://github.com/george2/python-nut2/tree/development" target="_blank">https://github.com/george2/python-nut2/tree/development</a><br>
<br>
- Charles<br>
<br>
Begin forwarded message:<br>
<br>
> From: george2 <<a href="mailto:notifications@github.com">notifications@github.com</a>><br>
> Subject: [nut] PyNUT: Fix error when raising without an Exception. (#128)<br>
> Date: June 3, 2014 3:34:00 PM EDT<br>
<div class="">> Raising without a valid exception is invalid:<br>
><br>
> >>> raise<br>
> Traceback (most recent call last):<br>
> File "<stdin>", line 1, in <module><br>
> TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType<br>
> >>> raise Exception<br>
> Traceback (most recent call last):<br>
> File "<stdin>", line 1, in <module><br>
> Exception<br>
><br>
> Changing this to "raise Exception" fixes this problem.<br>
><br>
</div><div class="">> You can merge this Pull Request by running<br>
><br>
> git pull <a href="https://github.com/george2/nut" target="_blank">https://github.com/george2/nut</a> master<br>
> Or view, comment on, or merge it at:<br>
><br>
> <a href="https://github.com/networkupstools/nut/pull/128" target="_blank">https://github.com/networkupstools/nut/pull/128</a><br>
><br>
> Commit Summary<br>
><br>
> • Fix error when raising without an Exception.<br>
> File Changes<br>
><br>
> • M scripts/python/module/PyNUT.py (2)<br>
> Patch Links:<br>
><br>
> • <a href="https://github.com/networkupstools/nut/pull/128.patch" target="_blank">https://github.com/networkupstools/nut/pull/128.patch</a><br>
> • <a href="https://github.com/networkupstools/nut/pull/128.diff" target="_blank">https://github.com/networkupstools/nut/pull/128.diff</a><br>
<br>
<br>
<br>
<br>
</div>_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@lists.alioth.debian.org">Nut-upsdev@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Engineering Linux/Unix Expert - Opensource Solutions Lead - Eaton - <a href="http://opensource.eaton.com" target="_blank">http://opensource.eaton.com</a><br>NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br>--<br>Conseiller Municipal - Saint Bernard du Touvet
</div>