Permalink
Browse files

make borg robust

  • Loading branch information...
1 parent 94cc4aa commit 9122f1cf5df49b69542931dec37e1cec846c2a2a @ricardokirkner ricardokirkner committed Jul 9, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 bots/borg.py
View
5 bots/borg.py
@@ -24,7 +24,10 @@ def get_bots_by_name():
continue
elif getattr(value, 'name', None) is not None and \
inspect.isclass(value) and not issubclass(value, BorgClient):
- bots[value.name] = value()
+ try:
+ bots[value.name] = value()
+ except:
+ pass
return bots

0 comments on commit 9122f1c

Please sign in to comment.