From 202ab2e2d32b1681e37d96b7dd1299f28086db94 Mon Sep 17 00:00:00 2001 From: Lulzette Date: Sat, 9 Apr 2022 00:43:00 +0300 Subject: [PATCH] Fixed --- twvdscli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/twvdscli.py b/twvdscli.py index 46cf247..9f352f3 100755 --- a/twvdscli.py +++ b/twvdscli.py @@ -322,13 +322,16 @@ def get_api_key(): result = auth(based) return result + def main(): apikey = get_api_key() if apikey is None: print(typer.style("Auth Error", fg=typer.colors.RED)) sys.exit(1) - reqHeader = {"Authorization": "Bearer " + apikey} + reqHeader['Authorization'] += apikey app() + if __name__ == '__main__': + reqHeader = {"Authorization": "Bearer "} main()