hugs / castro

"screencast robot" - a tiny fork of pyvnc2swf
77 stars 28 forks source link

Traceback error when filename ends in ".vnc" #1

Closed hugs closed 15 years ago

hugs commented 15 years ago

If I do this:

c = Castro(filename = "my-cool-screencast.swf") ... everything is great.

BUT, if I do this:

c = Castro(filename = "my-cool-screencast.vnc")

... I get this traceback:

Process Process-1: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/processing-0.52-py2.5-linux-i686.eg self.run() File "/usr/lib/python2.5/site-packages/processing-0.52-py2.5-linux-i686.eg self._target(_self._args, *_self._kwargs) File "/usr/lib/python2.5/site-packages/castro-1.0-py2.5.egg/castro/lib/pyv merge=merge, debug=debug) File "/usr/lib/python2.5/site-packages/castro-1.0-py2.5.egg/castro/lib/pyv stream.close() UnboundLocalError: local variable 'stream' referenced before assignment

hugs commented 15 years ago

Fixed! http://github.com/hugs/castro/commit/367c49d74ec000558d83e2b0a790099f15bfb0d5