D4-project / BGP-Ranking

BGP ranking is a free software to calculate the security ranking of Internet Service Provider (ASN)
http://bgpranking.circl.lu/
GNU Affero General Public License v3.0
68 stars 6 forks source link

argparse code probably outdated #16

Open SteveClement opened 2 years ago

SteveClement commented 2 years ago

After installing all the required deps it fails on a namespace error.

(venv) misp@misp-test:~/code/BGP-Ranking$ bgpranking
Traceback (most recent call last):
  File "/home/misp/code/BGP-Ranking/venv/bin/bgpranking", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/home/misp/code/BGP-Ranking/client/bin/bgpranking", line 43, in <module>
    if args.which == 'simple':
AttributeError: 'Namespace' object has no attribute 'which'
Rafiot commented 2 years ago

It is probably because a required paramater is not enforced by the script. Try bgpranking simple --asn 6661?