~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-08-09 13:12:05 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050809131205-563c3abe321ea722
Fixed NoPyBaz detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import shelf
5
5
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve, 
6
6
            shelf.cmd_unshelve]
 
7
from errors import NoPyBaz
7
8
try:
8
9
    import baz_import
9
10
    commands.append(baz_import.cmd_baz_import)
10
 
except Exception:
 
11
 
 
12
except NoPyBaz:
11
13
    class cmd_baz_import(bzrlib.commands.Command):
12
14
        """Disabled. (Requires PyBaz)"""
13
15
    commands.append(cmd_baz_import)