server/migractions.py
branchstable
changeset 4719 aaed3f813ef8
parent 4716 55b6a3262071
child 4721 8f63691ccb7f
--- a/server/migractions.py	Fri Feb 26 13:12:01 2010 +0100
+++ b/server/migractions.py	Fri Feb 26 13:19:14 2010 +0100
@@ -29,12 +29,11 @@
 
 from logilab.common.deprecation import deprecated
 from logilab.common.decorators import cached, clear_cache
-from logilab.common.adbh import get_adv_func_helper
 
 from yams.constraints import SizeConstraint
 from yams.schema2sql import eschema2sql, rschema2sql
 
-from cubicweb import AuthenticationError, ETYPE_NAME_MAP
+from cubicweb import AuthenticationError
 from cubicweb.schema import (META_RTYPES, VIRTUAL_RTYPES,
                              CubicWebRelationSchema, order_eschemas)
 from cubicweb.dbapi import get_repository, repo_connect
@@ -170,7 +169,6 @@
         # check
         if not osp.exists(backupfile):
             raise Exception("Backup file %s doesn't exist" % backupfile)
-            return
         if askconfirm and not self.confirm('Restore %s database from %s ?'
                                            % (self.config.appid, backupfile)):
             return