1
0
Fork 0
forked from s3lph/matemat

Even more debug output.

This commit is contained in:
s3lph 2018-09-09 03:33:09 +02:00
parent 660969744c
commit f11b0e0b93

View file

@ -580,6 +580,7 @@ class MatematDatabase(object):
def check_receipt_due(self, user: User, logger: logging.Logger) -> bool:
if not isinstance(user.receipt_pref, ReceiptPreference):
raise TypeError()
logger.debug('User: "%s", receipt_preference: %s, e-mail: %s.', user.name, user.receipt_pref, user.email)
if user.receipt_pref == ReceiptPreference.NONE or user.email is None:
logger.debug('Receipt preference None or no e-mail.')
return False