aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2022-09-13 11:05:37 -0700
committerJordan <me@jordan.im>2022-09-13 11:05:37 -0700
commitf2758ebe64c47c4613203b2a42ef2367dd1a832d (patch)
tree1654d656cc1f029b243b5ccf3a1f5b9e753f0fd5
parent207d80ca288d63829fea6dfa03981a72946567ef (diff)
downloadallium-f2758ebe64c47c4613203b2a42ef2367dd1a832d.tar.gz
allium-f2758ebe64c47c4613203b2a42ef2367dd1a832d.zip
Revert "fix: onionoo might not return platform key/values"
This reverts commit 207d80ca288d63829fea6dfa03981a72946567ef. Issue caused by temporary onionoo turbulence.
-rw-r--r--allium/lib/relays.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/allium/lib/relays.py b/allium/lib/relays.py
index 1b263d7..378e8dc 100644
--- a/allium/lib/relays.py
+++ b/allium/lib/relays.py
@@ -69,7 +69,7 @@ class Relays():
e.g. "Tor 0.3.4.9 on Linux" -> "Linux"
'''
for relay in self.json['relays']:
- relay['platform'] = relay.get('platform').split(' on ', 1)[1].split(' ')[0]
+ relay['platform'] = relay['platform'].split(' on ', 1)[1].split(' ')[0]
relay['platform'] = relay['platform'].split('/')[-1] # GNU/*
def _fix_missing_observed_bandwidth(self):