Skip to content

Commit

Permalink
Disabilitato l'invio della mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Lychfindel committed Jul 28, 2020
1 parent d00956c commit 790b0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def write_feedback(form, feedback_folder):
with open(file_feedback,'w+') as f:
f.write(mdfile)
# send an email to ourself with the feedback
if not app.debug:# if not app.debug:
if app.debug:# if not app.debug:
mail.send_email_to_ourself(subject="[FEEDBACK] "+ category,html_body=mdfile)

def take_care_of_the_error(request,err,error_folder):
Expand Down Expand Up @@ -139,7 +139,7 @@ def take_care_of_the_error(request,err,error_folder):
f.write(mdfile)

# send an email with the error
if not app.debug:# if not app.debug:
if app.debug:# if not app.debug:
mail.send_email_to_ourself(subject="[ERROR] "+ str(err),html_body=mdfile)


Expand Down

0 comments on commit 790b0cc

Please sign in to comment.