πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87737

Re: New version of PyClean

#87737
From: Steve Crook
Date: Mon, 05 Jun 2017 10:50
44 lines
2702 bytes
On Sun, 4 Jun 2017 22:32:13 +0200, Julien Γ‰LIE wrote in
Message-Id: <oh1qod$ld6$1@news.trigofacile.com>:

> Hi Steve,
>
>> To install the update, please download the Python filter from
>> Github: https://github.com/crooks/PyClean
>> Overwrite INN's
>> bin/filter/filter_innd.py with pyclean.py. Configure as desired and
>> then reload the filter.
>
> Thanks for the update!
> I've just downloaded the new version and am facing the following error 
> after reloading the filter.
> Is there something to do besides updating filter_innd.py?
>
> Traceback (most recent call last):
>    File "/home/news/bin/filter/filter_innd.py", line 220, in __init__
>      self.pyfilter = Filter()
>    File "/home/news/bin/filter/filter_innd.py", line 515, in __init__
>      threshold=config.getint('emp', 'lphn_threshold'),
>    File "/usr/lib/python2.7/ConfigParser.py", line 359, in getint
>      return self._get(section, int, option)
>    File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get
>      return conv(self.get(section, option))
>    File "/usr/lib/python2.7/ConfigParser.py", line 340, in get
>      raise NoOptionError(option, section)
> NoOptionError: No option 'lphn_threshold' in section: 'emp'

Hi Julian,

Thanks, I see what's happened.  The new version includes new config
options but the config is only read on filter startup, not reload.  I've
made a change now to reload the config in the filter_before_reload
function.  Unfortunately that too will require a restart as the code
isn't refreshed by a 'ctlinnd reload filter.python'.  I'm not sure if
there's a way to reinitialize the filter without stopping/starting inn.

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?

Technical Details
Message-ID: <slrnojadrm.6h1.steve@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <slrnoj8gg9.6h1.steve@fleegle.mixmin.net> <oh1qod$ld6$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnojadrm.6h1.steve@fleegle.mixmin.net>
Subject: Re: New version of PyClean
Date: Mon, 05 Jun 2017 10:50:30 +0000
From: Steve Crook <steve@mixmin.net>
References: <slrnoj8gg9.6h1.steve@fleegle.mixmin.net> <oh1qod$ld6$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 5 Jun 2017 10:50:30 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="be33e8c4b019bd61620a053168d52c8c202e7b1c";
 logging-data="13618"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/1.0.3 (Linux)
X-Received-Bytes: 2518
X-Received-Body-CRC: 1504441432