May-25-2018, 12:34 AM
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
Django - Catching None in Try/Except
|
|
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 |