Skip to content

Commit

Permalink
[FIX] registry: explicitly log registry loading errors
Browse files Browse the repository at this point in the history
In case the caller happens to silently catch
the exception, leading to hard-to-diagnose
registry/routing problems.
  • Loading branch information
odony committed Dec 14, 2015
1 parent 5254e31 commit e62b9e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openerp/modules/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ def new(cls, db_name, force_demo=False, status=None,
# This should be a method on Registry
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
except Exception:
_logger.exception('Failed to load registry')
del cls.registries[db_name]
raise

Expand Down

0 comments on commit e62b9e7

Please sign in to comment.