Arceliar / yggdrasil-map

Yggdrasil network map
GNU General Public License v3.0
64 stars 14 forks source link

crawel.py: TypeError: argument of type 'NoneType' is not iterable #26

Open marek22k opened 2 years ago

marek22k commented 2 years ago
$sudo python2 crawl.py 
{"yggnodes": {
"000000003718d2775a9d3cbb25d932f8a4db72d169ca99321270dc8f57ad5c4b": {"peers": ["000000004d995b978cb4f3a6f60a1a6290209abad65109b8006718fd0f9abbea", "0000000087ee9949eeab56bd430ee8f324cad55abf3993ed9b9be63ce693e18a", "3fec05758b2a4b2813ad5d44d9fa376ad8e97b40c703a39c6b5298f51d8dff85", "ac9f05534062a32ba3f715da23b60f1870d9bcc3d83609e86367b26220162ee0", "00000104ee097472631b0a5cfbf6e94feeb45fcf46b229f079e3df534d4452f9", "00000044887a2984ed2765b8aa03221f47bda3ea7f97210563f918e4ca3d3f18", "e32edba9ac30b2717218a1a2bc73003a43db4fc16e8238d2c3b78cfd65369a93", "0000000002243079eba5a6b72d20f7ef79c363a5575b10dd7ee807366a4fa65d", "690000e796ca062b16fc10821fb28be52750a4563b7f2d24ec8a62f71505710a"], "nodeinfo": {}, "address": "222:4739:6c45:2b16:1a26:d136:683a:d924", "coords": "[2 81 1 74]", "time": 1648228137.155251, "dht": ["513dacc17142b5cd8f3e5fe73d24f303de7486623fb19b7a220fb2028ef4c29a", "000000003befe1c551192f28ba22dbf225743b8c5383218572e239affb231c70", "000000003718d2775a9d3cbb25d932f8a4db72d169ca99321270dc8f57ad5c4b"]},
"00000104ee097472631b0a5cfbf6e94feeb45fcf46b229f079e3df534d4452f9": {"peers": ["00000002e71368e36f2fae8fe437e09f935dcf69ee08dc00afe02ad7eae2f5f7", "0000000087ee9949eeab56bd430ee8f324cad55abf3993ed9b9be63ce693e18a", "00000044887a2984ed2765b8aa03221f47bda3ea7f97210563f918e4ca3d3f18", "000000003718d2775a9d3cbb25d932f8a4db72d169ca99321270dc8f57ad5c4b", "000000351c92ef0dfc77d5b70151fa1de8c78b1b1cf1299a727c9f8fe70c7351", "0000000002243079eba5a6b72d20f7ef79c363a5575b10dd7ee807366a4fa65d", "000000004d995b978cb4f3a6f60a1a6290209abad65109b8006718fd0f9abbea", "0000000087ee9949eeab56bd430ee8f324cad55abf3993ed9b9be63ce693e18a", "690000e796ca062b16fc10821fb28be52750a4563b7f2d24ec8a62f71505710a"], "nodeinfo": {"buildname": "yggdrasil", "buildarch": "amd64", "buildplatform": "linux", "buildversion": "0.4.3", "name": "fourth.mk16.de"}, "address": "217:fb11:f68b:8d9c:e4f5:a304:916:b011", "coords": "[2 169 96 141]", "time": 1648228137.397441, "dht": ["00000111e77a96581eef71a1fed49954ece4e690fdc11c73cde0b6c11772b64b", "00000104ee097472631b0a5cfbf6e94feeb45fcf46b229f079e3df534d4452f9"]}Traceback (most recent call last):
  File "crawl.py", line 97, in <module>
    handleNodeInfoResponse(k, doRequest(getNodeInfoRequest(k)))
  File "crawl.py", line 60, in handleNodeInfoResponse
    if 'response' in peerInfo:
TypeError: argument of type 'NoneType' is not iterable

$python2 --version
Python 2.7.18