Skip to content

Commit 4e8e205

Browse files
committed
hopefully this does the fix, the local one works at least
1 parent 24af3e7 commit 4e8e205

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/commit-checker-standalone.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,12 @@ try:
131131
get_til_tag_suggestions = profile.get_til_tag_suggestions
132132
update_freeform_feedback = profile.update_freeform_feedback
133133
play_sound = profile.play_sound
134-
except AttributeError:
135-
# Fallback if profile module doesn't exist
136-
def build_profile(p): return {}
134+
except AttributeError as e:
135+
# Fallback if profile module doesn't exist - print debug info
136+
print(f"⚠️ Profile functions not available: {e}")
137+
def build_profile(p):
138+
print("❌ Profile building not available in standalone mode")
139+
return {}
137140
def suggest_commit_message(r, p, m): return []
138141
def get_stack_suggestions(r, p): return []
139142
def get_structure_suggestions(r, p): return []
@@ -314,10 +317,7 @@ def main():
314317
print(" 📁 Scanning project structures...")
315318
316319
try:
317-
# Import profile functions
318-
profile_module = load_module("profile", os.path.join(script_dir, "profile.py"))
319-
build_profile = profile_module.build_profile
320-
320+
# Use the imported build_profile function
321321
profile = build_profile(local_paths)
322322
323323
# Save profile using config functions

0 commit comments

Comments
 (0)