> RandomPage

--> -->
 
 
exceptions must be old-style classes or derived from BaseException, not str
Please include this information in your bug reports!:
Python Python 2.7.18: /usr/bin/python2
Linux erode.bofh.it 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64
MoinMoin Release 1.2.4 [Revision 1.187]
Thu Mar 28 20:47:33 2024

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

 /usr/local/share/moin/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI instance>)
  389                 if handler:
  390                     handler(pagename or
  391                     wikiutil.getSysPage(self, config.page_front_page).page_name, self)
  392                 else:
  393                     self.http_headers()
global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/local/share/moin/MoinMoin/wikiutil.pyc'>, wikiutil.getSysPage = <function getSysPage>, self = <MoinMoin.request.RequestCGI instance>, global config = <module 'MoinMoin.config' from '/usr/local/share/moin/MoinMoin/config.pyc'>, config.page_front_page = 'FrontPage', ).page_name undefined

 /usr/local/share/moin/MoinMoin/wikiaction.py in do_show(pagename='RandomPage', request=<MoinMoin.request.RequestCGI instance>)
  563         Page(pagename, date=request.form['date'][0]).send_page(request, count_hit=1)
  564     else:
  565         Page(pagename).send_page(request, count_hit=1)
  566 
  567 
global Page = <class MoinMoin.Page.Page>, pagename = 'RandomPage', ).send_page undefined, request = <MoinMoin.request.RequestCGI instance>, count_hit undefined

 /usr/local/share/moin/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI instance>, msg='', **keywords={'count_hit': 1})
  622         else:
  623             # parse the text and send the page content
  624             self.send_page_content(request, Parser, body)
  625 
  626             # check for pending footnotes
self = <MoinMoin.Page.Page instance>, self.send_page_content = <bound method Page.send_page_content of <MoinMoin.Page.Page instance>>, request = <MoinMoin.request.RequestCGI instance>, Parser = <class MoinMoin.parser.wiki.Parser>, body = 'A list of 25 random pages (out of [[PageCount]] total):[[RandomPage(25)]]\n'

 /usr/local/share/moin/MoinMoin/Page.py in send_page_content(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI instance>, Parser=<class MoinMoin.parser.wiki.Parser>, body='A list of 25 random pages (out of [[PageCount]] total):[[RandomPage(25)]]\n', needsupdate=0)
  721 
  722         try:
  723             exec code
  724         except 'CacheNeedsUpdate': # if something goes wrong, try without caching
  725            self.send_page_content(request, Parser, body, needsupdate=1)
code = <code object <module> at 0x7f2a3fa3a2b0, file "RandomPage", line 2>

 /home/gcn/wiki/RandomPage in ()

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