bundlewrap / bundlewrap

Exception caught is very general PYL-W0703
Anti-pattern
Major
6 months ago3 years old
Catching too general exception Exception
381            if conn_state['connection']:
382                try:
383                    conn_state['connection'].close()
384                except Exception as exc:385                    io.debug(f'error closing RouterOS connection to {hostname}: {exc}')
386
387            try:
Catching too general exception Exception
513        try:
514            with open(join(path, FILENAME_REQUIREMENTS)) as f:
515                lines = f.readlines()
516        except Exception:517            pass
518        else:
519            try:
Catching too general exception Exception
 69    def wrapper(*args, **kwargs):
 70        try:
 71            return f(*args, **kwargs)
 72        except Exception: 73            print_exc()
 74            exit(1)
 75        finally:
Catching too general exception Exception
 44        else:
 45            try:
 46                return literal_eval(stdout)
 47            except Exception: 48                return stdout
 49
 50    def run(self, command, **kwargs):