From 89302ddaa724004c2c95e433600f27ba4b432a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Fri, 14 Apr 2023 16:33:00 +0200 Subject: [PATCH] feat: only auth in deploy --- src/apis/jina_cloud.py | 2 +- src/cli.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index df44a3a..601cd42 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -104,7 +104,7 @@ def push_executor(dir_path): def get_user_name(): - client = hubble.Client(max_retries=None, jsonify=True) + client = hubble.Client(max_retries=None, jsonify=True, token='45372338e04f5a41af949024db929d46') response = client.get_user_info() return response['data']['name'] diff --git a/src/cli.py b/src/cli.py index 46f9033..2a5234a 100644 --- a/src/cli.py +++ b/src/cli.py @@ -16,7 +16,9 @@ def exception_interceptor(func): raise type(e)(f''' {str(e)} -😱😱😱 Sorry for this experience. Could you please report an issue about this on our github repo? We'll try to fix it asap. +😱😱😱 Sorry for this experience. +Could you please report an issue about this on our github repo? We'll try to fix it asap. +https://github.com/jina-ai/gptdeploy/issues/new ''') from e return wrapper