Subversion Repositories SmartDukaan

Rev

Rev 14949 | Rev 14958 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14949 Rev 14950
Line 82... Line 82...
82
                        if soup.h1.text.strip() in ['This is a duplicate order', 'There was a problem with your payment.']:
82
                        if soup.h1.text.strip() in ['This is a duplicate order', 'There was a problem with your payment.']:
83
                            resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
83
                            resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
84
                        else:
84
                        else:
85
                            raise
85
                            raise
86
                    except:
86
                    except:
87
                        if soup.h3.text.strip() == 'Web page not available':
87
                        if soup.h2.text.strip() == 'Web page not available':
88
                            resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
88
                            resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
89
            return resp
89
            return resp
90
            
90
            
91
        else:
91
        else:
92
            try:
92
            try: