lint: fix boolean expressions

This commit is contained in:
Tobias Bengfort
2021-06-17 10:35:34 +02:00
parent f4d8934ef5
commit ba4e7f9a17
4 changed files with 7 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ def start(request):
td.save()
request.session["td_id"] = td.id
try:
if td == None:
if td is None:
td = User_Keys.objects.get(id=request.session["td_id"])
context = {"key": td.properties["key"]}
except: