binbashar / leverage

Binbash Leverage CLI intended to orchestrate Leverage Reference Architecture for AWS (www.binbash.co/leverage)
https://pypi.org/project/leverage/
Apache License 2.0
17 stars 2 forks source link

fix super-class initialization #201

Closed Franr closed 1 year ago

Franr commented 1 year ago

What?

The super() was called on the wrong class.

Why?

Otherwise you will get the error message and code, but also a horrible stack trace:

[12:04:11.398] ERROR    Get SSO code timed-out                                                                                                
Traceback (most recent call last):
  File "/home/frivera/.local/share/virtualenvs/leverage-ojxVrH9D/lib/python3.8/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/home/frivera/.local/share/virtualenvs/leverage-ojxVrH9D/lib/python3.8/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frivera/.local/share/virtualenvs/leverage-ojxVrH9D/lib/python3.8/site-packages/click/core.py", line 1646, in invoke
    super().invoke(ctx)
  File "/home/frivera/.local/share/virtualenvs/leverage-ojxVrH9D/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frivera/.local/share/virtualenvs/leverage-ojxVrH9D/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/home/frivera/.local/share/virtualenvs/leverage-ojxVrH9D/lib/python3.8/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/frivera/.local/share/virtualenvs/leverage-ojxVrH9D/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
...