summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/peerinfo-tool/test_gnunet_peerinfo.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerinfo-tool/test_gnunet_peerinfo.py.in b/src/peerinfo-tool/test_gnunet_peerinfo.py.in
index 9d6fd8fb2..ad5d096b5 100755
--- a/src/peerinfo-tool/test_gnunet_peerinfo.py.in
+++ b/src/peerinfo-tool/test_gnunet_peerinfo.py.in
@@ -33,7 +33,7 @@ if gnunet_pyexpect_dir not in sys.path:
from gnunet_pyexpect import pexpect
#save LANG and set it to C
-mylang = os.environ['LANG']
+mylang = os.environ.get('LANG')
os.environ['LANG'] = 'C'
if os.name == 'posix':