Skip to content

Commit

Permalink
Adjust exception handling mechanisms
Browse files Browse the repository at this point in the history
  • Loading branch information
zanllp committed Jul 10, 2024
1 parent 03bed6d commit d91c046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/iib/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -653,7 +653,7 @@ def get_current_tag():
return result.stdout.strip()
else:
return None
except subprocess.CalledProcessError:
except Exception:
return None


Expand Down

0 comments on commit d91c046

Please sign in to comment.