Skip to content
Sections
>> Trisquel >> Paquets >> aramo >> python >> python3-flake8-blind-except
aramo  ]
[ Paquet source : flake8-blind-except  ]

Paquet : python3-flake8-blind-except (0.2.0-2)

flake8 extension that checks for blind, catch-all except

A flake8 extension that checks for blind, catch-all except: and except Exception: statements.

As of pycodestyle 2.1.0, "E722 do not use bare except, specify exception instead" is built-in. However, bare Exception and BaseException are still allowed. This extension flags them as B902.

Using except without explicitly specifying which exceptions to catch is generally considered bad practice, since it catches system signals like SIGINT. You probably want to handle system interrupts differently than exceptions occurring in your code.

Autres paquets associés à python3-flake8-blind-except

  • dépendances
  • recommandations
  • suggestions
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-pkg-resources
    Package Discovery and Resource Access using pkg_resources
  • enh: flake8
    code checker using pycodestyle and pyflakes

Télécharger python3-flake8-blind-except

Télécharger pour toutes les architectures proposées
Architecture Taille du paquet Espace occupé une fois installé Fichiers
all 4,8 ko24 ko [liste des fichiers]