Use .__ne__ instead of 'is not None' statement to fix the API test cases.

pull/63/head
Akshay Joshi 2021-11-24 18:54:25 +05:30
parent bce7e8346d
commit 9a0d92469b
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ def create_app(app_name=None):
if config.SERVER_MODE is False:
# Get the user language preference from the miscellaneous module
user_id = None
if current_user.is_authenticated:
if current_user.__ne__(None) and current_user.is_authenticated:
user_id = current_user.id
else:
user = user_datastore.find_user(email=config.DESKTOP_USER)