Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Continue and report error in case of not installed package

  • Loading branch information...
commit 2614045c88fb6c792b3c971ffca50d4180e5f392 1 parent 531539a
@amol- amol- authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 gearbox/main.py
View
6 gearbox/main.py
@@ -10,7 +10,11 @@ def __init__(self):
super(GearBox, self).__init__(description="TurboGears2 Gearbox toolset",
version='2.3',
command_manager=CommandManager('gearbox.commands'))
- self._load_commands_for_current_dir()
+
+ try:
+ self._load_commands_for_current_dir()
+ except pkg_resources.DistributionNotFound as e:
+ print('Failed to load project commands, %s' % e, file=sys.stderr)
def _load_commands_for_current_dir(self):
egg_info_dir = find_egg_info_dir(os.getcwd())
Please sign in to comment.
Something went wrong with that request. Please try again.