CptDarling / xot-uzg

Automatically exported from code.google.com/p/xot-uzg
0 stars 0 forks source link

xbmc UnbouldLocalError in uriHandler.Open #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At line 182 in uriopener.py.

Possible (untested) fix:
try:
  sourceHandle.close()  # FIXME: happens when URI is not avaiable (and more cases?), display error.
  destHandle.close()      # FIXME: what if destHandle is open and sourceHandle not?
except UnboundLocalError:     
  pass

Original issue reported on code.google.com by oome...@gmail.com on 8 Aug 2007 at 11:45

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for this good idea! I just added it to the code. 

Original comment by basrie...@gmail.com on 8 Aug 2007 at 6:10

GoogleCodeExporter commented 9 years ago
Well, turned out it didn't work...  Glad I said untested ;-) I'll give it 
another try soon for a proper fix.

Original comment by oome...@gmail.com on 15 Aug 2007 at 7:52

GoogleCodeExporter commented 9 years ago
Changed status to Done

Original comment by basrie...@gmail.com on 24 Jun 2012 at 11:42