Skip to content

Commit

Permalink
Merge pull request #95 from mvanbaak/gitless
Browse files Browse the repository at this point in the history
Run when git command is simply not installed
  • Loading branch information
Drazzilb08 authored Feb 27, 2024
2 parents b22383c + cf5b882 commit 8b13d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def get_current_git_branch():
text=True)
# Capture the output and return the current branch
return result.stdout.strip()
except subprocess.CalledProcessError as e:
except (FileNotFoundError, subprocess.CalledProcessError) as e:
# Handle any errors if the command fails
print(f"Error: {e}")
return None
Expand Down Expand Up @@ -849,7 +849,7 @@ def is_match(asset, media):
folder_title, folder_year = match.groups()
folder_year = int(folder_year)
normalized_folder_title = normalize_titles(folder_title)

# Matching criteria for media and asset
if (
asset['title'] == media['title'] or
Expand Down

0 comments on commit 8b13d14

Please sign in to comment.