pyxlr8r - interpreter - crashes if input is not a model file

Bug #1131444 reported by biomathman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cellerator
New
Medium
biomathman

Bug Description

Typical traceback:

py[xlr8r]: interpreter (2013-02-21 14:02:20)
Traceback (most recent call last):
  File "/home/mathman/code/pyxlr8r/code/pyxlr8r/interpreter.py", line 1189, in <module>
    interpreter()
  File "/home/mathman/code/pyxlr8r/code/pyxlr8r/interpreter.py", line 1182, in interpreter
    rv=interpret("", ofile="")
  File "/home/mathman/code/pyxlr8r/code/pyxlr8r/interpreter.py", line 1045, in interpret
    (results, rates, functions, frozen, assignments, ICS) = runparser(filename, trace=dump)
  File "/home/mathman/code/pyxlr8r/code/pyxlr8r/interpreter.py", line 94, in runparser
    return (results, rates, functions, frozenvars, assignments, ics)
UnboundLocalError: local variable 'functions' referenced before assignment

There is a work-aound - the input file name must end in ".model" - in which case the error does not occur.

Revision history for this message
biomathman (bes-shapon) wrote :

Verified.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.