[Pkg-privacy-commits] [onioncircuits] 25/39: Display fingerprint if nickname is None
Sascha Steinbiss
sascha at steinbiss.name
Sun May 15 16:40:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
sascha-guest pushed a commit to branch master
in repository onioncircuits.
commit 589615903ef612faac665bbaf63719cff384cda5
Author: Alan <alan at boum.org>
Date: Sun May 15 12:55:32 2016 +0000
Display fingerprint if nickname is None
When using briges, nickname may be initially None. This used to produce an exception.
Use the fingerprint instead.
Will-fix: 11195
---
onioncircuits | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/onioncircuits b/onioncircuits
index 800384c..1ecda2a 100755
--- a/onioncircuits
+++ b/onioncircuits
@@ -319,7 +319,7 @@ class OnionCircuitsWindow(Gtk.ApplicationWindow):
:returns: **str** representing the circuit
"""
if circuit.path:
- circ_str = _(', ').join([nick for fp, nick in circuit.path])
+ circ_str = _(', ').join([nick if nick else fp for fp, nick in circuit.path])
else:
circ_str = _("Building...")
return circ_str
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncircuits.git
More information about the Pkg-privacy-commits
mailing list