From 33ad9e1d3320507bf9ad69a3689e6879aac71183 Mon Sep 17 00:00:00 2001 From: Raymond Wagner Date: Wed, 27 Feb 2013 23:35:17 -0500 Subject: [PATCH] Fix file opening in python bindings. This corrects an issue introduced in 8fe38245 where the alternate input to ftopen() was not accepted as the regular expression match would error instead of simply failing. --- mythtv/bindings/python/MythTV/mythproto.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mythtv/bindings/python/MythTV/mythproto.py b/mythtv/bindings/python/MythTV/mythproto.py index 5a052830748..ea40340cf33 100644 --- a/mythtv/bindings/python/MythTV/mythproto.py +++ b/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://@[:]/) - match = reuri.match(file) + match = None + try: + match = reuri.match(file) + except: + pass + if match: host = match.group('host') filename = match.group('file')