Closed Ashymad closed 5 years ago
When user has no nick if user.nick crashes with FieldDoesNotExist. Instead hasattr('user', 'nick') should be used.
if user.nick
FieldDoesNotExist
hasattr('user', 'nick')
When user has no nick
if user.nick
crashes withFieldDoesNotExist
. Insteadhasattr('user', 'nick')
should be used.