This code is throwing not supported between instances of NoneType and NoneType error How can Fix this

0 votes
def summary(self, request, url_view_detail):

        def status(data):

            if data['status'] is not None:

                if data['expired_at'] < data['started_at']:

                    return contribution_status_display(3, True)

                else:    

                    return contribution_status_display(data['status'], True)

            else:

                return 'not available'
Mar 21, 2022 in Python by Nur

edited Mar 4, 2025 304 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP