[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #4056 [BridgeDB]: bridgedb tracebacks



#4056: bridgedb tracebacks
----------------------+-----------------------------------------------------
 Reporter:  arma      |          Owner:  aagbsn
     Type:  defect    |         Status:  new   
 Priority:  normal    |      Milestone:        
Component:  BridgeDB  |        Version:        
 Keywords:            |         Parent:        
   Points:            |   Actualpoints:        
----------------------+-----------------------------------------------------

Comment(by aagbsn):

 Replying to [ticket:4056 arma]:
 > {{{
 > Traceback (most recent call last):
 >   File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
 >     "__main__", fname, loader, pkg_name)
 >   File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
 >     exec code in run_globals
 >   File "/home/bridges/lib/python2.6/site-packages/TorBridgeDB.py", line
 4, in <module>
 >     bridgedb.Main.run()
 >   File "/home/bridges/lib/python2.6/site-packages/bridgedb/Main.py",
 line 381, in run
 >     startup(configuration)
 >   File "/home/bridges/lib/python2.6/site-packages/bridgedb/Main.py",
 line 339, in startup
 >     Server.addWebServer(cfg, ipDistributor, webSchedule)
 >   File "/home/bridges/lib/python2.6/site-packages/bridgedb/Server.py",
 line 268, in addWebServer
 >     useRecaptcha=cfg.RECAPTCHA_ENABLED,
 > AttributeError: Conf instance has no attribute 'RECAPTCHA_ENABLED'
 > }}}
 >
 > running 054560d33d74e7 with no new lines added to my config file. The
 fix presumably is to check if the config line is present before trying to
 access it. (Once I added the config line I didn't get the traceback.)

 This is the same behavior as many of the other config options. The best
 way to solve this is to add 'smart defaults' to CONFIG_DEFAULTS in
 Main.py. (done)

 Perhaps bridgedb should have a set of default options for most of the
 config options?
 >
 > {{{
 > 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'
 > }}}
 >
 > Looks like we meant to say cleanWarnedEmails?

 That is correct, thanks!

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4056#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs