Skip to content

Commit

Permalink
Replaced some debugging stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Oct 20, 2014
1 parent a96e775 commit ab40806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ws.py
Expand Up @@ -206,10 +206,10 @@ def watcher(ev,wrap2):
site_post_id = fetch_post_id_and_site_from_msg_content(msg_content)
store_site_and_post_id(site_post_id)
learned = bayesian_learn_title(msg_content, "good")
if learned == True:
if(learned):
ev.message.reply("Registered as false positive and added title to Bayesian doctype 'good'.")
else:
ev.message.reply(str(learned))
ev.message.reply("Registered as false positive, but could not add the title to the Bayesian doctype 'good'.")
msg_to_delete.delete()
except:
pass # couldn't delete message
Expand Down

0 comments on commit ab40806

Please sign in to comment.