ilyalelechenko / price_bot

Exception caught which does not inherit from Exception PYL-E0712
Bug risk
Critical
a year agoa year old
Catching an exception which doesn't inherit from Exception: all
22            return None
23        price1 = price(ref).split('/')
24        return price1[0], ref
25    except all as error:26        print(error)
27        print('Error on parcer_ozon')
28        return None
Catching an exception which doesn't inherit from Exception: all
46        prices = prices.text.replace('\u2009', '').replace('\n', ' / ')
47        browser2.quit()
48        return prices
49    except all as error:50        print(error)
51        print('Error on price')
52        return None
Catching an exception which doesn't inherit from Exception: all
37        else:
38            return None
39        return [ref, price]
40    except all as er: #Да не правильно, но что поделать, ловлю все ошибки41        print("Error on parseWB2")
42        print(er)
43        return None