Browse Source

Update repository.py (#42)

Add raise msg
master^2
chenxujun GitHub 2 years ago
parent
commit
f69181020a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modelscope/hub/repository.py

+ 1
- 0
modelscope/hub/repository.py 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,


Loading…
Cancel
Save