Merge pull request #687 from zanllp/feature/exception-handling-adjustment

Adjust exception handling mechanisms
pull/690/head v0.17.1
zanllp 2024-07-11 02:08:41 +08:00 committed by GitHub
commit e07acdcf9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -643,7 +643,7 @@ def get_current_commit_hash():
return result.stdout.strip()
else:
return None
except subprocess.CalledProcessError:
except Exception:
return None
def get_current_tag():
@ -653,7 +653,7 @@ def get_current_tag():
return result.stdout.strip()
else:
return None
except subprocess.CalledProcessError:
except Exception:
return None