fixed missing return value (attempts) in addFailure in case of observed/banned tickets (could cause error `'>=' not supported between instances of 'NoneType' and 'int'` with python 3.x, gh-2432)

pull/2302/head
sebres 2019-05-28 09:21:55 +02:00
parent f48677db7d
commit 7c7dfab8db
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class FailManager:
except KeyError:
# not found - already banned - prevent to add failure if comes from observer:
if observed or isinstance(ticket, BanTicket):
return
return ticket.getRetry()
# if already FailTicket - add it direct, otherwise create (using copy all ticket data):
if isinstance(ticket, FailTicket):
fData = ticket;