Skip to content

Commit

Permalink
Fix keyring problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbrnowski committed Apr 18, 2022
1 parent cf0a735 commit 773ad6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cft/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.6.3'
__version__ = '1.6.4'
6 changes: 5 additions & 1 deletion cft/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import argparse

import keyring
import requests

from cft import __version__
from cft.utils.config import config
from cft.utils.constants import *
Expand Down Expand Up @@ -46,6 +46,10 @@ def main():
except requests.RequestException:
print(error_style('Something went wrong. Check your internet connection.'))
sys.exit()
except keyring.errors.NoKeyringError as e:
print(error_style('Keyring problem: '), e)
except Exception as e:
print(error_style('Error'), e)
else:
parser.print_help()
try_upgrade()
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
keyring>=23.0.1
keyrings.alt>=4.1.0
requests>=2.23.0
beautifulsoup4>=4.9.1
sty>=1.0.0rc1
sty>=1.0.0rc1

0 comments on commit 773ad6e

Please sign in to comment.