Skip to content

Commit

Permalink
added try_except_substraction for whole KLIFS pocket matching algo
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaw9910 committed Oct 25, 2024
1 parent 89c03db commit 1f76f84
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,10 @@ def get_repo_root():
return repo.working_tree_dir
except git.InvalidGitRepositoryError:
return None


def try_except_substraction(a, b):
try:
return b-a
except TypeError:
return None

0 comments on commit 1f76f84

Please sign in to comment.