This commit is contained in:
Lulzette 2022-04-09 00:43:00 +03:00
parent 849a74908d
commit 202ab2e2d3

View File

@ -322,13 +322,16 @@ def get_api_key():
result = auth(based) result = auth(based)
return result return result
def main(): def main():
apikey = get_api_key() apikey = get_api_key()
if apikey is None: if apikey is None:
print(typer.style("Auth Error", fg=typer.colors.RED)) print(typer.style("Auth Error", fg=typer.colors.RED))
sys.exit(1) sys.exit(1)
reqHeader = {"Authorization": "Bearer " + apikey} reqHeader['Authorization'] += apikey
app() app()
if __name__ == '__main__': if __name__ == '__main__':
reqHeader = {"Authorization": "Bearer "}
main() main()