fixed logging issue when invalid user_id
This commit is contained in:
+1
-1
@@ -443,7 +443,7 @@ class AuthAPI(object):
|
|||||||
# log messages should not be translated
|
# log messages should not be translated
|
||||||
if type(description).__name__ == 'lazyT':
|
if type(description).__name__ == 'lazyT':
|
||||||
description = description.m
|
description = description.m
|
||||||
if self.table_user()[user_id]:
|
if not user_id or self.table_user()[user_id]:
|
||||||
self.table_event().insert(
|
self.table_event().insert(
|
||||||
description=str(description % vars), origin=origin, user_id=user_id)
|
description=str(description % vars), origin=origin, user_id=user_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user