Opened 8 years ago

Closed 7 years ago

#5121 closed defect (fixed)

bridgedb traceback: Database instance has no attribute 'cleanWarnedBridges'

Reported by: arma Owned by: aagbsn
Priority: Medium Milestone:
Component: Circumvention/BridgeDB Version:
Severity: Keywords:
Cc: nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1165, in run
    self.mainLoop()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1174, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 796, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/task.py", line 194, in __call__
    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 125, in maybeDeferred
    result = f(*args, **kw)
  File "/home/bridges/lib/python2.6/site-packages/bridgedb/Dist.py", line 299, in cleanDatabase
    db.cleanWarnedBridges(time.time()-MAX_EMAIL_RATE)
exceptions.AttributeError: Database instance has no attribute 'cleanWarnedBridges'

Child Tickets

Change History (3)

comment:1 Changed 8 years ago by arma

torgit/bridgedb/lib/bridgedb$ grep cleanWarned *
Dist.py:            db.cleanWarnedBridges(time.time()-MAX_EMAIL_RATE)
Storage.py:    def cleanWarnedEmails(self, expireBefore):
Tests.py:        db.cleanWarnedEmails(t+200)

Looks like I should change Bridges to Emails?

Also, can somebody run one of those "figure out if you screwed up guessing the names of things" python tools here? A problem like this seems silly to still have.

comment:3 Changed 7 years ago by aagbsn

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.