Projet

Général

Profil

0013-misc-fix-bare-except-pylint-error-56288.patch

Lauréline Guérin, 30 août 2021 17:53

Télécharger (1,38 ko)

Voir les différences:

Subject: [PATCH 13/31] misc: fix bare-except pylint error (#56288)

 combo/apps/lingo/__init__.py      | 2 +-
 combo/apps/lingo/manager_views.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
combo/apps/lingo/__init__.py
74 74
        ):
75 75
            try:
76 76
                item.notify_payment()
77
            except:
77
            except Exception:
78 78
                logger.exception('error in async notification for basket item %s', item.id)
79 79

  
80 80

  
combo/apps/lingo/manager_views.py
109 109
        if query:
110 110
            try:
111 111
                date = date_parser.parse(query, dayfirst=True)
112
            except:
112
            except Exception:
113 113
                qs = qs.filter(
114 114
                    Q(order_id=query) | Q(bank_transaction_id=query) | Q(items__subject__icontains=query)
115 115
                )
116
-