Update repository.py (#42)

Add raise msg
This commit is contained in:
chenxujun 2022-12-15 10:39:07 +08:00 committed by GitHub
parent e6961b3970
commit f69181020a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ class Repository:
raise InvalidParameter(msg)
if message is None or message == '':
msg = 'We use annotated tag, therefore message cannot None or empty.'
raise InvalidParameter(msg)
self.git_wrapper.tag(
repo_dir=self.model_dir,
tag_name=tag_name,