X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Fgnunet-qr.py.in;h=ced7a5441155a0222c8ddcaa0c3506b6ef9155f9;hb=4707789ebfb4cef9672db31e3ceb8f98381901d0;hp=94eb47bbf927d787f08b3af7f1ace81fee156a0f;hpb=c4c5c2937f06b5d408f85dfdad5b53db45e51f4b;p=oweals%2Fgnunet.git diff --git a/src/util/gnunet-qr.py.in b/src/util/gnunet-qr.py.in index 94eb47bbf..ced7a5441 100755 --- a/src/util/gnunet-qr.py.in +++ b/src/util/gnunet-qr.py.in @@ -4,10 +4,10 @@ import getopt import subprocess from sys import argv try: - import zbar + import zbar except ImportError as e: - print 'Cannot run gnunet-qr, please install zbar-python' - sys.exit (1) + print 'Cannot run gnunet-qr, please install zbar-python' + sys.exit (1) def help (): print 'gnunet-qr\n\ @@ -101,6 +101,8 @@ if __name__ == '__main__': print 'Running `' + cmd +'`' res=subprocess.call(args) if (0 != res): - print 'Failed to add URI ' + str(symbol.data) + print 'Failed to add URI ' + str(symbol.data) + else: + print 'Added URI ' + str(symbol.data) exit (res) exit (1)