allura
Révision | c2a838a4e3cd2249af38da1a113b1f75be8ed069 (tree) |
---|---|
l'heure | 2012-05-30 03:11:40 |
Auteur | Cory Johns <johnsca@geek...> |
Commiter | Cory Johns |
[#4118] Added error handling and logging for failed wiki app install during migration 024
Signed-off-by: Cory Johns <johnsca@geek.net>
@@ -33,7 +33,11 @@ def main(): | ||
33 | 33 | |
34 | 34 | app = p.app_instance('wiki') |
35 | 35 | if app is None: |
36 | - p.install_app('wiki') | |
36 | + try: | |
37 | + p.install_app('wiki') | |
38 | + except Exception as e: | |
39 | + log.error("Unable to install wiki for user %s" % user.username) | |
40 | + continue | |
37 | 41 | |
38 | 42 | page = WM.Page.query.get(app_config_id=app.config._id, title='Home') |
39 | 43 | if page is None: |