projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-fix the fix
[oweals/gnunet.git]
/
src
/
util
/
gnunet-qr.py.in
diff --git
a/src/util/gnunet-qr.py.in
b/src/util/gnunet-qr.py.in
index 94eb47bbf927d787f08b3af7f1ace81fee156a0f..ced7a5441155a0222c8ddcaa0c3506b6ef9155f9 100755
(executable)
--- 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 subprocess
from sys import argv
try:
- import zbar
+
import zbar
except ImportError as e:
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\
def help ():
print 'gnunet-qr\n\
@@
-101,6
+101,8
@@
if __name__ == '__main__':
print 'Running `' + cmd +'`'
res=subprocess.call(args)
if (0 != res):
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)
exit (res)
exit (1)