--> -->

UnboundLocalError

local variable 'next_line' referenced before assignment

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. C:\moin\Lib\site-packages\MoinMoin\request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1016 from MoinMoin.wikiaction import getHandler
    2. 1017 handler = getHandler(self, action)
    3. 1018 handler(self.page.page_name, self)
    4. 1019
    5. 1020 # 5. Or redirect to another page
    • handler = <function do_edit>
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'CashManagement'
  2. C:\moin\Lib\site-packages\MoinMoin\wikiaction.py in do_edit (pagename=u'CashManagement', request=<MoinMoin.request.RequestCGI object>)

    1. 629 else:
    2. 630 try:
    3. 631 savemsg = pg.saveText(savetext, rev, trivial=trivial, comment=comment)
    4. 632 except pg.EditConflict, msg:
    5. 633 # Handle conflict and send editor
    • savemsg undefined
    • pg = <MoinMoin.PageEditor.PageEditor instance>
    • pg.saveText = <bound method PageEditor.saveText of <MoinMoin.PageEditor.PageEditor instance>>
    • savetext = u'Describe here.\n\n'
    • rev = 2
    • trivial = 0
    • comment = u''
  3. C:\moin\Lib\site-packages\MoinMoin\PageEditor.py in saveText (self=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'Describe here.\n\n', rev=2, **kw={'comment': u'', 'trivial': 0})

    1. 858 other = True
    2. 859 next_line = line
    3. 860 if next_line.is_from_current_user(self.request):
    4. 861 saved_page = Page(self.request, self.page_name,
    5. 862 rev=int(next_line.rev))
    • next_line undefined
    • self = <MoinMoin.PageEditor.PageEditor instance>
    • self.request = <MoinMoin.request.RequestCGI object>

UnboundLocalError

local variable 'next_line' referenced before assignment

  • args = ("local variable 'next_line' referenced before assignment",)

System Details