From 8d4dc1b373f5c8750ee0de6f542dec22eb222e0e Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 3 Apr 2018 00:22:19 -0500 Subject: [PATCH] fixed logging issue when invalid user_id --- gluon/authapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/authapi.py b/gluon/authapi.py index 50e30db9..887ae724 100644 --- a/gluon/authapi.py +++ b/gluon/authapi.py @@ -443,7 +443,7 @@ class AuthAPI(object): # log messages should not be translated if type(description).__name__ == 'lazyT': description = description.m - if self.table_user()[user_id]: + if not user_id or self.table_user()[user_id]: self.table_event().insert( description=str(description % vars), origin=origin, user_id=user_id)