File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def get_config():
4444 paths .append (custom_config_path )
4545
4646 if not any (os .path .exists (path ) for path in paths ):
47- raise click .ClickException ('No configuration file was found' )
47+ raise click .ClickException ('No configuration file was found. ' )
4848
4949 config .read (paths )
5050 return config
Original file line number Diff line number Diff line change 1212# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1313# License for the specific language governing permissions and limitations
1414# under the License.
15+ import click
1516import requests
1617from twcli .config import get_config , get_config_item
1718from twcli .constants import TRANSPLATFORM_ENGINES , API_TOKEN_PREFIX , GIT_PLATFORMS
1819from twcli .service_layer .config .memsource import \
1920 resources as memsource_resources , media_types as memsource_media_types
2021
21- GITHUB_TOKEN = get_config_item (get_config (), "github" , "token" )
22+ try :
23+ GITHUB_TOKEN = get_config_item (get_config (), "github" , "token" )
24+ except click .ClickException as e :
25+ print (f"Warning: { e } \n " )
2226
2327
2428def request_phrase_token (phrase_user : str , phrase_pass : str ):
You can’t perform that action at this time.
0 commit comments