Skip to content

Commit

Permalink
chore: Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Nov 9, 2024
1 parent fe89920 commit 73ff172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/core/util/theme_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def install_theme(self, repo, owner):

gc.collect()
return json.dumps({'success': True})
except git.CommandError as e:
except git.CommandError if platform.system() == "Linux" else pygit2.GitError as e:
logger.error(f"Error cloning repository: {e}")
except Exception as e:
return json.dumps({'success': False, 'message': "Failed to clone the theme repository!"})
Expand Down

0 comments on commit 73ff172

Please sign in to comment.