Merge pull request #687 from zanllp/feature/exception-handling-adjustment
Adjust exception handling mechanismspull/690/head v0.17.1
commit
e07acdcf9c
|
|
@ -643,7 +643,7 @@ def get_current_commit_hash():
|
||||||
return result.stdout.strip()
|
return result.stdout.strip()
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
except subprocess.CalledProcessError:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_current_tag():
|
def get_current_tag():
|
||||||
|
|
@ -653,7 +653,7 @@ def get_current_tag():
|
||||||
return result.stdout.strip()
|
return result.stdout.strip()
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
except subprocess.CalledProcessError:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue