diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Client/Toolset.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py index 3b408aa40..c14bf4792 100644 --- a/src/lib/Client/Toolset.py +++ b/src/lib/Client/Toolset.py @@ -379,7 +379,10 @@ class Toolset(object): contentStatus = content == tempdata if not contentStatus: diff = '\n'.join([x for x in difflib.unified_diff(content.split('\n'), tempdata.split('\n'))]) - entry.set("current_diff", xml.sax.saxutils.quoteattr(diff)) + try: + entry.set("current_diff", xml.sax.saxutils.quoteattr(diff)) + except: + pass return contentStatus and permissionStatus def InstallConfigFile(self, entry): |