Orange Forum • View topic - Unhandled exception of type exceptions.UnboundLocalError

Unhandled exception of type exceptions.UnboundLocalError

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

Unhandled exception of type exceptions.UnboundLocalError

Postby Sci-Fi » Tue Oct 25, 2005 9:37

We have found a minor bug in release 0.9.61.

Add widget File.

File -> choose Browse Documentation Data Set -> Close window

Trace:

Code: Select all
Unhandled exception of type exceptions.UnboundLocalError  occured at 10:29:55:
Traceback:
  File: orngSignalManager.py in line 60
  Function name: __call__
  Code: apply(self.method, k)
    File: OWFile.py in line 41
    Function name: selectFile
    Code: self.browseFile(1)
      File: OWFile.py in line 64
      Function name: browseFile
      Code: if not os.path.exists(startfile):
      Exception type: exceptions.UnboundLocalError
      Exception value: local variable 'os' referenced before assignment


Postby Janez » Tue Oct 25, 2005 12:55

I can't replicate the error, but looking at the function I guess I know what was wrong and why it doesn't happen on my machine. Anyway, I think I fixed it, it should work in tomorrow's snapshot. Thanks for the report!


Return to Bugs