sanketsaurav / lore

Exception caught is very general PYL-W0703
Anti-pattern
Major
4 years ago5 years old
Catching too general exception Exception
319                        exc_info=(exc_type, value, tb),
320                        extra_data={"app": env.APP}
321                    )
322                except Exception as e:323                    logger.exception('reporting to rollbar: %s' % e)
324
325            sys.excepthook = report_exception
Catching too general exception Exception
435            try:
436                locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
437                UNICODE_UPGRADED = True
438            except StandardError:439                UNICODE_LOCALE = False
440
441