Adjust exception handling mechanisms

pull/687/head
zanllp 2024-07-11 02:07:51 +08:00
parent 03bed6d5a6
commit d91c046dc8
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