Sangarshanan / jazzit

Exception caught is very general PYL-W0703
Anti-pattern
Major
4 years ago4 years old
Catching too general exception Exception
51
52            if "IPKernelApp" not in get_ipython().config:  # pragma: no cover
53                in_notebook = False
54        except Exception:55            in_notebook = False
56        _flags["in_notebook"] = in_notebook
57    return in_notebook
Catching too general exception Exception
25    try:
26        audio = MP3(track_path)
27        length = audio.info.length
28    except Exception:29        # Default fallback
30        length = 3
31    return length
Catching too general exception Exception
45        def wrapped_function(*args):
46            try:
47                original_func(*args)
48            except Exception as e:49                track_path = _get_track_path(self.track)
50                if self.ascii_err:
51                    from pyfiglet import figlet_format