mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
QuoteGrabs: fix SyntaxWarning (#1391)
SyntaxWarning: "is" with a literal. Did you mean "=="? Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
This commit is contained in:
parent
a1ee580d08
commit
981a3b245a
@ -118,7 +118,7 @@ class SqliteQuoteGrabsDB(object):
|
|||||||
if len(results) == 0:
|
if len(results) == 0:
|
||||||
raise dbi.NoRecordError
|
raise dbi.NoRecordError
|
||||||
(id, by, quote, hostmask, at, grabber) = results[0]
|
(id, by, quote, hostmask, at, grabber) = results[0]
|
||||||
if quoteonly is 0:
|
if quoteonly == 0:
|
||||||
return QuoteGrabsRecord(id, by=by, text=quote, hostmask=hostmask,
|
return QuoteGrabsRecord(id, by=by, text=quote, hostmask=hostmask,
|
||||||
at=int(at), grabber=grabber)
|
at=int(at), grabber=grabber)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user