Python Forum
Django - Catching None in Try/Except
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Django - Catching None in Try/Except
#2
Just use some kind of switch - on/off. When the first time you get None set it to on or True or whatever and when the next time gets None check the value and take some actions. After that, you can set it back to off/False
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
Django - Catching None in Try/Except - by david - May-24-2018, 09:37 PM
RE: Django - Catching None in Try/Except - by wavic - May-25-2018, 12:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,373 Jun-30-2019, 12:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020