From 1bcc43b288f35c33ddc8bbfee34df9e44dc0afaf Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Date: Wed, 10 Oct 2018 13:27:46 +0200 Subject: [PATCH] Return text instead of an empty string in func_rreplace in case of error --- picard/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/script.py b/picard/script.py index 5ed4b72d2..d6208bf73 100644 --- a/picard/script.py +++ b/picard/script.py @@ -445,7 +445,7 @@ def func_rreplace(parser, text, old, new): try: return re.sub(old, new, text) except re.error: - return "" + return text def func_rsearch(parser, text, pattern):