remove unneeded print if not debug

This commit is contained in:
PidgeyL
2016-05-30 14:26:27 +02:00
parent ebcb24c945
commit 902e90147a
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ from .client import *
__copyright__ = 'Copyright 2015 by Taehoon Kim'
__version__ = '0.3.1'
__version__ = '0.4.0'
__license__ = 'BSD'
__author__ = 'Taehoon Kim; Moreels Pieter-Jan'
__email__ = 'carpedm20@gmail.com'

View File

@@ -449,9 +449,9 @@ class Client(object):
fbid = m['delta']['messageMetadata']['threadKey']['otherUserFbId']
name = None
self.on_message(mid, fbid, name, message, m)
else:
print(m)
if self.debug:
print(m)
except Exception as e:
self.on_message_error(e, m)