• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Révisionc2a838a4e3cd2249af38da1a113b1f75be8ed069 (tree)
l'heure2012-05-30 03:11:40
AuteurCory Johns <johnsca@geek...>
CommiterCory Johns

Message de Log

[#4118] Added error handling and logging for failed wiki app install during migration 024

Signed-off-by: Cory Johns <johnsca@geek.net>

Change Summary

Modification

--- a/scripts/migrations/024-migrate-custom-profile-text.py
+++ b/scripts/migrations/024-migrate-custom-profile-text.py
@@ -33,7 +33,11 @@ def main():
3333
3434 app = p.app_instance('wiki')
3535 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
3741
3842 page = WM.Page.query.get(app_config_id=app.config._id, title='Home')
3943 if page is None: