X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=devel%2Fnmbug%2Fnmbug-status;h=934c895f033a1b4602f099513e2c31909b3e1827;hb=8c3d19313e590590db3ecfe0fb7177f4f6aee023;hp=55f0d738f383781319ee4164f004ca5e78411853;hpb=73fcfa861cf412a548238fdf3e0a505d98d7ea78;p=notmuch diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index 55f0d738..934c895f 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -7,7 +7,6 @@ # - argparse; either python 2.7, or install separately import datetime -import notmuch import rfc822 import urllib import json @@ -57,6 +56,9 @@ elif args.get_query != None: if args.get_query == view['title']: print ' and '.join(view['query']) sys.exit(0) +else: + # only import notmuch if needed + import notmuch if args.text: output_format = 'text'