From 99aecedd0b3315e35bd6e8774f4b023db4efa459 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Barrabin=20Fc=2E=20=E2=9A=91?= <barrabin.fc@gmail.com>
Date: Thu, 3 Mar 2016 20:47:26 -0300
Subject: [PATCH] print syntax error when json dbschema.json failed

---
 src/Site/SiteStorage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Site/SiteStorage.py b/src/Site/SiteStorage.py
index f0e0057c..00a0bb1e 100644
--- a/src/Site/SiteStorage.py
+++ b/src/Site/SiteStorage.py
@@ -38,7 +38,7 @@ class SiteStorage:
             schema = self.loadJson("dbschema.json")
             db_path = self.getPath(schema["db_file"])
         except Exception, err:
-            raise Exception("dbschema.json is not a valid JSON: %s", err)
+            raise Exception("dbschema.json is not a valid JSON: %s" % err)
 
         if check:
             if not os.path.isfile(db_path) or os.path.getsize(db_path) == 0:  # Not exist or null