Control: reassign -1 python-turbogears2 2.1.5-2
Control: affects -1 src:turbogears2-doc
Control: retitle -1 python-turbogears2: import tg fails with AttributeError

On Mon, 2 Jun 2014 21:16:17 +0200, David Suárez wrote:
> Exception occurred:
>   File "/usr/lib/pymodules/python2.7/tg/controllers/dispatcher.py", line 31, 
> in <module>
>     HTTPNotFound = HTTPNotFound().exception
> AttributeError: 'HTTPNotFound' object has no attribute 'exception'

Actually this is a bug in python-turbogears2, and happens when one
tries to import tg module:

  Python 2.7.10 (default, Jun  1 2015, 16:21:46) 
  [GCC 4.9.2] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import tg
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/pymodules/python2.7/tg/__init__.py", line 58, in <module>
      from tg.controllers import TGController, redirect, url, lurl, abort
    File "/usr/lib/pymodules/python2.7/tg/controllers/__init__.py", line 1, in 
<module>
      from dispatcher          import ObjectDispatcher
    File "/usr/lib/pymodules/python2.7/tg/controllers/dispatcher.py", line 31, 
in <module>
      HTTPNotFound = HTTPNotFound().exception
  AttributeError: 'HTTPNotFound' object has no attribute 'exception'

Reassigning accordingly.

--
Dmitry Shachnev

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to