Permalink
Browse files

Fix file opening in python bindings.

This corrects an issue introduced in 8fe3824 where the alternate input
to ftopen() was not accepted as the regular expression match would error
instead of simply failing.
  • Loading branch information...
wagnerrp authored and jyavenard committed Feb 28, 2013
1 parent 4e93cf0 commit 3b98a7fca4f083527b25da0a46bdfc37e489fcf9
Showing with 6 additions and 1 deletion.
  1. +6 −1 mythtv/bindings/python/MythTV/mythproto.py
@@ -228,7 +228,12 @@ def ftopen(file, mode, forceremote=False, nooverwrite=False, db=None, \
FileTransfer(host, file, storagegroup, mode, db)
# process URI (myth://<group>@<host>[:<port>]/<path/to/file>)
match = reuri.match(file)
match = None
try:
match = reuri.match(file)
except:
pass
if match:
host = match.group('host')
filename = match.group('file')

0 comments on commit 3b98a7f

Please sign in to comment.