Don't log StopIteration exceptions
As a follow up to #260 (comment 27550914) the following task mentioned by @warsaw seems to be not complete:
Workflow.__next__()
should catch and ignoreStopIteration
. It's an expected condition.
The following errors are just confusing in the logs, they look dangerous, but are expected:
Apr 18 06:53:09 2019 (24) list@domain.net: held subscription request from name@domain.de
Apr 18 06:53:09 2019 (24) deque: subscribe_from_restored
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/mailman/app/workflow.py", line 69, in __next__
return step()
File "/usr/lib/python3.6/site-packages/mailman/app/subscriptions.py", line 309, in _step_get_moderator_approval
raise StopIteration
StopIteration
Apr 19 07:12:53 2019 (30) deque: do_confirm_verify
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/mailman/app/workflow.py", line 69, in __next__
return step()
File "/usr/lib/python3.6/site-packages/mailman/app/subscriptions.py", line 338, in _step_send_confirmation
raise StopIteration
StopIteration