]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/sql.py
Remove string exception from remaster.
[wizard.git] / wizard / sql.py
index aafa6452b6ef912ce34059f7e923eb041775af5a..e1719fa48bbc6cc815111a02365653c34114c725 100644 (file)
@@ -83,7 +83,7 @@ def restore_mysql(backup_dir, deployment):
     Database restoration for MySQL by piping SQL commands into :command:`mysql`.
     """
     if not os.path.exists(backup_dir):
-        raise RestoreDatabaseError("Backup %s doesn't exist", backup_dir.rpartition("/")[2])
+        raise RestoreDatabaseError("Backup %s doesn't exist" % backup_dir.rpartition("/")[2])
     sql = open(os.path.join(backup_dir, "db.sql"), 'w+')
     shell.call("gunzip", "-c", os.path.join(backup_dir, "db.sql.gz"), stdout=sql)
     sql.seek(0)