BGP-Ranking icon indicating copy to clipboard operation
BGP-Ranking copied to clipboard

argparse code probably outdated

Open SteveClement opened this issue 2 years ago • 1 comments

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'

SteveClement avatar Oct 10 '21 07:10 SteveClement

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

Rafiot avatar Oct 10 '21 08:10 Rafiot