Skip to content

Commit

Permalink
Fix file opening in python bindings.
Browse files Browse the repository at this point in the history
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 committed Feb 28, 2013
1 parent 8e353ee commit 33ad9e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mythtv/bindings/python/MythTV/mythproto.py
Expand Up @@ -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')
Expand Down

0 comments on commit 33ad9e1

Please sign in to comment.