Skip to content

Commit

Permalink
Merge pull request #1 from granddaifuku/feat/add_message
Browse files Browse the repository at this point in the history
アップデートがなされていないときに表示するメッセージの追加
  • Loading branch information
granddaifuku authored Nov 6, 2020
2 parents ed1dc43 + 1529aa7 commit 79a89d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions onlinejudge_command/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,14 @@ def main(args: Optional[List[str]] = None) -> None:
logger.info('see: https://github.com/online-judge-tools/oj')
if not is_updated:
logger.info('hint: try updating the version of online-judge-tools')
logger.info('Please run `$ pip install -U online-judge-tools online-judge-api-client`')
sys.exit(1)
except Exception as e:
logger.debug('\n' + traceback.format_exc())
logger.exception(str(e))
if not is_updated:
logger.info('hint: try updating the version of online-judge-tools')
logger.info('Please run `$ pip install -U online-judge-tools online-judge-api-client`')
sys.exit(1)


Expand Down

0 comments on commit 79a89d1

Please sign in to comment.