CORD-2293 add mechanism for synchronizer to load wrappers

Change-Id: I6f4e3ffa2032873718695977adc5c5d7e26272af
(cherry picked from commit 26eea288a017d27e2757e336df19b6628a8316f7)
diff --git a/lib/xos-config/xosconfig/config.py b/lib/xos-config/xosconfig/config.py
index ff221a9..ba8e75d 100644
--- a/lib/xos-config/xosconfig/config.py
+++ b/lib/xos-config/xosconfig/config.py
@@ -136,7 +136,11 @@
         try:
             Config.validate_config_format(config_file, config_schema)
         except Exception, e:
-            raise Exception('[XOS-Config] The config format is wrong: %s' % e.msg)
+            try:
+                error_msg = e.msg
+            except AttributeError:
+                error_msg = str(e)
+            raise Exception('[XOS-Config] The config format is wrong: %s' % error_msg)
 
         with open(config_file, 'r') as stream:
             return yaml.safe_load(stream)