elismasilva commited on
Commit
1cb5675
·
1 Parent(s): 4b3841d

fix github_token validation on reply and close issue

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -805,7 +805,9 @@ def reply_and_close_issue(
805
  """
806
 
807
  if not github_token:
808
- raise gr.Error("⚠️ Write Permission Error: A GitHub Token is mandatory for posting comments or closing issues.")
 
 
809
 
810
  if not repo_url:
811
  error = "Please provide the repository URL."
 
805
  """
806
 
807
  if not github_token:
808
+ error = "Write Permission Error: A GitHub Token is mandatory for posting comments or closing issues."
809
+ gr.Info(f"⚠️ {error}")
810
+ return error
811
 
812
  if not repo_url:
813
  error = "Please provide the repository URL."