t4ngo / dragonfly

ARCHIVED! - Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS) and Windows Speech Recognition (WSR)
GNU Lesser General Public License v3.0
364 stars 82 forks source link

Error message bug in elements_basic.py #30

Closed jgarvin closed 9 years ago

jgarvin commented 9 years ago

In elements_basic.py in the ListRef constructor there is this error:

        raise TypeError("List object of %s object must be a"
                        " Dragonfly list." % self)

Which will fail to print because the str method relies on self._list.name being defined, and self._list isn't initialized until the line after the error.