diff --git a/tryton/gui/window/dbcreate.py b/tryton/gui/window/dbcreate.py index 82b7968d47..5bc3f9a0e3 100644 --- a/tryton/gui/window/dbcreate.py +++ b/tryton/gui/window/dbcreate.py @@ -357,8 +357,13 @@ class DBCreate(object): and langreal \ and passwd \ and admin_passwd.get_text(): - if rpc.db_exec(url_m.group(1), int(url_m.group(2)), - 'db_exist', dbname): + try: + exist = rpc.db_exec(url_m.group(1), + int(url_m.group(2)), 'db_exist', dbname) + except Exception, exception: + common.process_exception(exception, self.dialog) + continue + if exist: common.warning(_("A database with the same name " \ "already exists.\n" \ "Try another database name."), self.dialog,