--> -->

TypeError

exceptions must be old-style classes or derived from BaseException, not str

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /html/s/skolelinux/moin/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1103 # Visit pagename
    2. 1104 self.page = Page(self, pagename)
    3. 1105 self.page.send_page(self, count_hit=1)
    4. 1106
    5. 1107 # generate page footer (actions that do not want this footer
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • count_hit undefined
  2. /html/s/skolelinux/moin/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'count_hit': 1})

    1. 1225 format_args=pi_formatargs,
    2. 1226 do_cache=do_cache,
    3. 1227 start_line=pi_lines)
    4. 1228
    5. 1229 # check for pending footnotes
    • start_line undefined
    • pi_lines = 0
  3. /html/s/skolelinux/moin/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u"==''' \u5982\u4f55\u8d2d\u4e70[http://www.bjbx.net \u4fdd\u9669]''' ==\n\n\n:\u5728\u60a8\u505a\u51fa...\u768440%\u50a8\u84c4\uff0c25%\u6295\u8d44\u5b9e\u4e1a\uff0c15%\u8d2d\u4e70\u503a\u5238\uff0c10%\u4e70\u4fdd\u9669\uff0c\u8fd9\u4e0d\u5931\u4e3a\u4e00\u79cd\u8f83\u4f73\u7684\u5bb6\u5ead\u7406\u8d22\u6295\u8d44\u7ed3\u6784\u3002\n", format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1308 try:
    2. 1309 code = self.loadCache(request)
    3. 1310 self.execute(request, parser, code)
    4. 1311 except 'CacheNeedsUpdate':
    5. 1312 try:
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestCGI object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object <module> at 0x97cf188, file "ASSURANCE", line 2>
  4. /html/s/skolelinux/moin/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object <module> at 0x97cf188, file "ASSURANCE", line 2>)

    1. 1332 if hasattr(MoinMoin, '__loader__'):
    2. 1333 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    3. 1334 exec code
    4. 1335
    5. 1336 def loadCache(self, request):
    • code = <code object <module> at 0x97cf188, file "ASSURANCE", line 2>
  5. /var/alternc/html/s/skolelinux/moin/cgi-bin/ASSURANCE in ()

TypeError

exceptions must be old-style classes or derived from BaseException, not str

  • args = ('exceptions must be old-style classes or derived from BaseException, not str',)
  • message = 'exceptions must be old-style classes or derived from BaseException, not str'

System Details

  • Date: Sun, 05 Feb 2012 23:46:48 +0000
  • Platform: Linux brassens 2.6.32-5-vserver-686-bigmem #1 SMP Mon Oct 3 08:09:45 UTC 2011 i686
  • Python: Python 2.6.6 (/usr/bin/python)
  • MoinMoin: Release 1.5.2 (release)