diff --git a/assets/core/util/theme_installer.py b/assets/core/util/theme_installer.py index 812df214..d604beae 100644 --- a/assets/core/util/theme_installer.py +++ b/assets/core/util/theme_installer.py @@ -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!"})