{ "info": { "author": "Elijah Andrews", "author_email": "elijahcandrews@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "flake8-blind-except\n===================\n\nA flake8 extension that checks for blind, catch-all ``except:`` statements.\n\nUsing ``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 occuring in your code.\n\nIt's also usually better style to have many small ``try``-``except`` blocks catching specific exceptions instead of a giant ``try:`` block with a catch-all ``except:`` at the bottom. It's also nicer to your fellow programmers to be a bit more specific about what exceptions they can expect in specific parts of the code, and what the proper course of action is when they occur.\n\nAn example of code that will fail this check is:\n\n.. code-block:: python\n\n try:\n something_scary()\n except:\n everybody_panic()\n\nHowever, the following code is valid:\n\n.. code-block:: python\n\n try:\n something_terrifying()\n except TerrifyingException:\n dont_panic()\n\nInstallation\n------------\n\nIf you don't already have it, install ``flake8``::\n\n $ pip install flake8\n\nThen, install the extension::\n\n $ pip install flake8-blind-except\n\nUsage\n-----\n\nRun the following to verify that the plugin has been installed correctly::\n\n $ flake8 --version\n 2.0 (pep8: 1.4.6, flake8-blind-except: 0.1.0, pyflakes: 0.7.3)\n\nNow, when you run ``flake8``, the plugin will automatically be used.\n\nWhen a blind except is found, ``flake8`` will output::\n\n B901 blind except: statement\n\n\n\nChanges\n------\n\n0.1.1 - 2016-06-27\n``````````````````\n* ``pep8`` was renamed to ``pycodestyle`` in its 2.0 release. Compatibility update for this change\n\n0.1.0 - 2014-02-07\n``````````````````\n* Initial release\n\nNotes\n-----\n\nI've tested this package with flake8 2.6.2 and Python 2.7.3. It is untested (but likely compatible) with other software versions.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/elijahandrews/flake8-blind-except", "keywords": "flake8 except exception", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "flake8-blind-except", "package_url": "https://pypi.org/project/flake8-blind-except/", "platform": "", "project_url": "https://pypi.org/project/flake8-blind-except/", "project_urls": { "Homepage": "https://github.com/elijahandrews/flake8-blind-except" }, "release_url": "https://pypi.org/project/flake8-blind-except/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "A flake8 extension that checks for blind except: statements", "version": "0.1.1" }, "last_serial": 2190157, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a76ae6603b53c230ad81f9dea27c6bbb", "sha256": "a8599a48d9fff490ce4fa2c6a60ca876c39cc6c107f58068eb831079266b650b" }, "downloads": -1, "filename": "flake8-blind-except-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a76ae6603b53c230ad81f9dea27c6bbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2006, "upload_time": "2014-02-07T18:38:36", "url": "https://files.pythonhosted.org/packages/58/45/01b5dd4cba855d42ffa61b24be0bba1e5e1da92533f5c054de38008ba611/flake8-blind-except-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e8bac36467b587367df16c0a1a9a03fa", "sha256": "0d7d1adb4cabf2268d6eebb815a7a5014bcb7e8419f7a74339c46d0b8847b858" }, "downloads": -1, "filename": "flake8_blind_except-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "e8bac36467b587367df16c0a1a9a03fa", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3325, "upload_time": "2016-06-27T19:26:04", "url": "https://files.pythonhosted.org/packages/ae/8c/aef0d2419897fe9f916bd60a01cfdbe8d6cb6d79278b16d55ff1c3b24771/flake8_blind_except-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "bd74ca16e060b3cf1dd69d3f27aadae7", "sha256": "aca3356633825544cec51997260fe31a8f24a1a2795ce8e81696b9916745e599" }, "downloads": -1, "filename": "flake8-blind-except-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bd74ca16e060b3cf1dd69d3f27aadae7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2534, "upload_time": "2016-06-27T19:26:02", "url": "https://files.pythonhosted.org/packages/ff/f2/ab635e6e420e78c94eab50cd3f53abd3ec27e411793e50b14f29edbb9f0b/flake8-blind-except-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8bac36467b587367df16c0a1a9a03fa", "sha256": "0d7d1adb4cabf2268d6eebb815a7a5014bcb7e8419f7a74339c46d0b8847b858" }, "downloads": -1, "filename": "flake8_blind_except-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "e8bac36467b587367df16c0a1a9a03fa", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3325, "upload_time": "2016-06-27T19:26:04", "url": "https://files.pythonhosted.org/packages/ae/8c/aef0d2419897fe9f916bd60a01cfdbe8d6cb6d79278b16d55ff1c3b24771/flake8_blind_except-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "bd74ca16e060b3cf1dd69d3f27aadae7", "sha256": "aca3356633825544cec51997260fe31a8f24a1a2795ce8e81696b9916745e599" }, "downloads": -1, "filename": "flake8-blind-except-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bd74ca16e060b3cf1dd69d3f27aadae7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2534, "upload_time": "2016-06-27T19:26:02", "url": "https://files.pythonhosted.org/packages/ff/f2/ab635e6e420e78c94eab50cd3f53abd3ec27e411793e50b14f29edbb9f0b/flake8-blind-except-0.1.1.tar.gz" } ] }