Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable broad-try-clause check #7796

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

nickdrozd
Copy link
Collaborator

Type of Changes

Type
🔨 Refactoring

Description

This enables the broad-try-clause check and sets the max-try-statements config option to not flag anything. I think it would be a good idea to try and lower that number, but that can be done later.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 3499767446

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.413%

Totals Coverage Status
Change from base Build 3495970943: 0.0%
Covered Lines: 17391
Relevant Lines: 18227

💛 - Coveralls

@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry labels Nov 18, 2022
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Pierre-Sassoulas Pierre-Sassoulas merged commit 07b81d4 into pylint-dev:main Nov 18, 2022
@github-actions
Copy link
Contributor

🤖 Effect of this PR on checked open source code: 🤖

Effect on black:
The following messages are now emitted:

  1. too-many-try-statements:
    try clause contains 39 statements, expected at most 14
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/blackd/__init__.py#L85

The following messages are no longer emitted:

  1. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/__init__.py#L718
  2. too-many-try-statements:
    try clause contains 9 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/__init__.py#L742
  3. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/__init__.py#L872
  4. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/__init__.py#L1026
  5. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/files.py#L96
  6. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/files.py#L165
  7. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/brackets.py#L351
  8. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/handle_ipynb_magics.py#L60
  9. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/cache.py#L87
  10. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/linegen.py#L687
  11. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/linegen.py#L1203
  12. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/lines.py#L199
  13. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/concurrency.py#L32
  14. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/concurrency.py#L49
  15. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/concurrency.py#L161
  16. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/black/parsing.py#L93
  17. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/blackd/__init__.py#L9
  18. too-many-try-statements:
    try clause contains 39 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/blackd/__init__.py#L85
  19. too-many-try-statements:
    try clause contains 11 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/blackd/__init__.py#L199
  20. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/blib2to3/pytree.py#L845
  21. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/psf/black/blob/27932494bcefac03497dd92dcf0c59a04c10d757/src/blib2to3/pgen2/parse.py#L97

Effect on django:
The following messages are now emitted:

  1. too-many-try-statements:
    try clause contains 15 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/query.py#L160
  2. too-many-try-statements:
    try clause contains 32 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/compiler.py#L699
  3. too-many-try-statements:
    try clause contains 20 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/dumpdata.py#L224
  4. too-many-try-statements:
    try clause contains 16 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/makemessages.py#L429
  5. too-many-try-statements:
    try clause contains 19 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/urls/resolvers.py#L537
  6. too-many-try-statements:
    try clause contains 54 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/management/commands/createsuperuser.py#L102
  7. too-many-try-statements:
    try clause contains 24 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/multipartparser.py#L164
  8. too-many-try-statements:
    try clause contains 19 statements, expected at most 14
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/multipartparser.py#L252

The following messages are no longer emitted:

  1. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/autoreload.py#L159
  2. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/autoreload.py#L665
  3. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/log.py#L95
  4. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/regex_helper.py#L78
  5. too-many-try-statements:
    try clause contains 14 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/http.py#L127
  6. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/module_loading.py#L54
  7. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/module_loading.py#L76
  8. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/encoding.py#L68
  9. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/encoding.py#L255
  10. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/dateformat.py#L95
  11. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/_os.py#L48
  12. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/utils/translation/__init__.py#L271
  13. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaultfilters.py#L153
  14. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaultfilters.py#L586
  15. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaultfilters.py#L638
  16. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaultfilters.py#L682
  17. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaultfilters.py#L747
  18. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaultfilters.py#L798
  19. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/base.py#L806
  20. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/base.py#L877
  21. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/base.py#L884
  22. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/engine.py#L156
  23. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/loader_tags.py#L224
  24. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaulttags.py#L502
  25. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/defaulttags.py#L510
  26. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/backends/dummy.py#L28
  27. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/template/loaders/filesystem.py#L21
  28. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/views/debug.py#L427
  29. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/views/debug.py#L462
  30. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/views/static.py#L124
  31. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/views/defaults.py#L62
  32. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/views/generic/list.py#L72
  33. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/forms.py#L441
  34. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/utils.py#L217
  35. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/fields.py#L230
  36. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/fields.py#L641
  37. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/fields.py#L717
  38. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/formsets.py#L433
  39. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/models.py#L978
  40. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/forms/models.py#L1534
  41. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/transaction.py#L236
  42. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/transaction.py#L249
  43. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/transaction.py#L282
  44. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/ddl_references.py#L90
  45. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/ddl_references.py#L125
  46. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/base/base.py#L700
  47. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/base/base.py#L717
  48. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/base/creation.py#L68
  49. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/base/creation.py#L214
  50. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/sqlite3/_functions.py#L256
  51. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/sqlite3/schema.py#L47
  52. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/sqlite3/features.py#L133
  53. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/postgresql/client.py#L58
  54. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/postgresql/base.py#L23
  55. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/postgresql/base.py#L318
  56. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/postgresql/base.py#L330
  57. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/postgresql/base.py#L356
  58. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/postgresql/creation.py#L42
  59. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/postgresql/creation.py#L73
  60. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/mysql/client.py#L66
  61. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/mysql/base.py#L308
  62. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/mysql/compiler.py#L63
  63. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/mysql/creation.py#L45
  64. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/oracle/creation.py#L106
  65. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/oracle/creation.py#L175
  66. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/oracle/creation.py#L182
  67. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/backends/oracle/creation.py#L344
  68. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/migrations/autodetector.py#L498
  69. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/migrations/loader.py#L185
  70. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/migrations/state.py#L704
  71. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/migrations/recorder.py#L68
  72. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/utils.py#L11
  73. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/expressions.py#L29
  74. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/expressions.py#L771
  75. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/base.py#L515
  76. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/base.py#L2105
  77. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/base.py#L2424
  78. too-many-try-statements:
    try clause contains 15 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/query.py#L160
  79. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/query.py#L936
  80. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/query.py#L1273
  81. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/query.py#L1622
  82. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/constraints.py#L91
  83. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/constraints.py#L363
  84. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/lookups.py#L438
  85. too-many-try-statements:
    try clause contains 8 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/options.py#L66
  86. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/query.py#L1411
  87. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/query.py#L1635
  88. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/query.py#L1804
  89. too-many-try-statements:
    try clause contains 8 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/query.py#L2116
  90. too-many-try-statements:
    try clause contains 8 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/compiler.py#L539
  91. too-many-try-statements:
    try clause contains 32 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/compiler.py#L699
  92. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/compiler.py#L1502
  93. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/compiler.py#L1526
  94. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/compiler.py#L1945
  95. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/sql/compiler.py#L2052
  96. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L325
  97. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L1378
  98. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L1504
  99. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L1515
  100. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L1614
  101. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L1638
  102. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L1696
  103. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/db/models/fields/__init__.py#L2469
  104. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/templatetags/i18n.py#L524
  105. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/templatetags/tz.py#L78
  106. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/testcases.py#L957
  107. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/testcases.py#L1280
  108. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/testcases.py#L1508
  109. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/testcases.py#L1778
  110. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/utils.py#L995
  111. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/signals.py#L207
  112. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/runner.py#L1060
  113. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/test/runner.py#L1067
  114. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/middleware/cache.py#L194
  115. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/middleware/cache.py#L201
  116. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/paginator.py#L45
  117. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/validators.py#L234
  118. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/checks/model_checks.py#L136
  119. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/cache/backends/locmem.py#L102
  120. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/cache/backends/memcached.py#L105
  121. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/cache/backends/filebased.py#L33
  122. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/cache/backends/filebased.py#L52
  123. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/cache/backends/filebased.py#L62
  124. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/cache/backends/filebased.py#L64
  125. too-many-try-statements:
    try clause contains 11 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/cache/backends/db.py#L137
  126. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/handlers/base.py#L52
  127. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/handlers/base.py#L280
  128. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/handlers/exception.py#L162
  129. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/move.py#L46
  130. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/move.py#L72
  131. too-many-try-statements:
    try clause contains 10 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/images.py#L53
  132. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/locks.py#L96
  133. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/locks.py#L118
  134. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/uploadhandler.py#L185
  135. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/storage/filesystem.py#L75
  136. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/storage/filesystem.py#L98
  137. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/storage/filesystem.py#L108
  138. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/files/storage/filesystem.py#L154
  139. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/serializers/pyyaml.py#L19
  140. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/serializers/json.py#L68
  141. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/serializers/base.py#L374
  142. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/serializers/xml_serializer.py#L357
  143. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/color.py#L11
  144. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/color.py#L38
  145. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/templates.py#L213
  146. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/templates.py#L322
  147. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/templates.py#L379
  148. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/__init__.py#L323
  149. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/__init__.py#L375
  150. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/runserver.py#L163
  151. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/shell.py#L103
  152. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/dumpdata.py#L11
  153. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/dumpdata.py#L18
  154. too-many-try-statements:
    try clause contains 8 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/dumpdata.py#L136
  155. too-many-try-statements:
    try clause contains 20 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/dumpdata.py#L224
  156. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/squashmigrations.py#L104
  157. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/inspectdb.py#L45
  158. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/inspectdb.py#L96
  159. too-many-try-statements:
    try clause contains 16 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/makemessages.py#L429
  160. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/compilemessages.py#L22
  161. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/compilemessages.py#L151
  162. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/loaddata.py#L27
  163. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/loaddata.py#L34
  164. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/management/commands/loaddata.py#L242
  165. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/mail/message.py#L107
  166. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/mail/backends/console.py#L33
  167. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/mail/backends/filebased.py#L62
  168. too-many-try-statements:
    try clause contains 6 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/core/mail/backends/smtp.py#L82
  169. too-many-try-statements:
    try clause contains 19 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/urls/resolvers.py#L537
  170. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/urls/base.py#L53
  171. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/urls/base.py#L70
  172. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sites/models.py#L36
  173. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/password_validation.py#L235
  174. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/views.py#L312
  175. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/__init__.py#L190
  176. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/models.py#L219
  177. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/models.py#L234
  178. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/migrations/0011_update_proxy_permissions.py#L45
  179. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/handlers/modwsgi.py#L17
  180. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/handlers/modwsgi.py#L34
  181. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/management/__init__.py#L61
  182. too-many-try-statements:
    try clause contains 54 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/auth/management/commands/createsuperuser.py#L102
  183. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/contenttypes/views.py#L14
  184. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/contenttypes/management/__init__.py#L26
  185. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/contenttypes/management/__init__.py#L121
  186. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/staticfiles/storage.py#L433
  187. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/staticfiles/management/commands/collectstatic.py#L344
  188. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admindocs/utils.py#L12
  189. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admindocs/views.py#L302
  190. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/utils/layermapping.py#L243
  191. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/utils/layermapping.py#L516
  192. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/utils/layermapping.py#L632
  193. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/utils/layermapping.py#L658
  194. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/utils/layermapping.py#L714
  195. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/geometries.py#L274
  196. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/srs.py#L74
  197. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/layer.py#L129
  198. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/libgdal.py#L13
  199. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/field.py#L178
  200. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/field.py#L193
  201. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/field.py#L204
  202. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/raster/band.py#L106
  203. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/gdal/raster/source.py#L299
  204. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/forms/widgets.py#L68
  205. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/forms/fields.py#L101
  206. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/db/backends/base/models.py#L23
  207. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/db/backends/base/models.py#L29
  208. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/db/backends/spatialite/operations.py#L150
  209. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/db/backends/oracle/introspection.py#L21
  210. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/db/models/fields.py#L427
  211. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/sitemaps/views.py#L26
  212. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/admin/widgets.py#L76
  213. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/gis/geos/libgeos.py#L23
  214. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sitemaps/views.py#L127
  215. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sessions/middleware.py#L28
  216. too-many-try-statements:
    try clause contains 9 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sessions/backends/file.py#L81
  217. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sessions/backends/file.py#L126
  218. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sessions/backends/file.py#L158
  219. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sessions/backends/file.py#L163
  220. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/sessions/backends/db.py#L84
  221. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/humanize/templatetags/humanize.py#L71
  222. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/utils.py#L333
  223. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/widgets.py#L369
  224. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/helpers.py#L254
  225. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/options.py#L864
  226. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/options.py#L1905
  227. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/views/autocomplete.py#L78
  228. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/views/main.py#L242
  229. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/views/main.py#L327
  230. too-many-try-statements:
    try clause contains 10 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/admin/views/main.py#L361
  231. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/postgres/signals.py#L41
  232. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/postgres/signals.py#L57
  233. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/contrib/postgres/fields/array.py#L186
  234. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/response.py#L46
  235. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/response.py#L574
  236. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/request.py#L526
  237. too-many-try-statements:
    try clause contains 24 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/multipartparser.py#L164
  238. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/multipartparser.py#L174
  239. too-many-try-statements:
    try clause contains 19 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/multipartparser.py#L252
  240. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/django/django/blob/51faf4bd172cd4cb219a9793facbfa00246c9f3c/django/http/multipartparser.py#L676

Effect on flask:
The following messages are no longer emitted:

  1. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/scaffold.py#L785
  2. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/scaffold.py#L796
  3. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/sessions.py#L370
  4. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L62
  5. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L95
  6. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L140
  7. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L970
  8. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/config.py#L183
  9. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/config.py#L263
  10. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/ctx.py#L249
  11. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/ctx.py#L350
  12. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/ctx.py#L395
  13. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L1819
  14. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L1846
  15. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L2525
  16. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L2526
  17. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/signals.py#L3
  18. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/templating.py#L74

Effect on pandas:
The following messages are now emitted:

  1. too-many-try-statements:
    try clause contains 15 statements, expected at most 14
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_version.py#L147
  2. too-many-try-statements:
    try clause contains 23 statements, expected at most 14
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/tests/plotting/test_datetimelike.py#L1488
  3. too-many-try-statements:
    try clause contains 17 statements, expected at most 14
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/io/stata.py#L2652

The following messages are no longer emitted:

  1. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_version.py#L77
  2. too-many-try-statements:
    try clause contains 15 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_version.py#L147
  3. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_version.py#L527
  4. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_version.py#L543
  5. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_version.py#L549
  6. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_testing/_io.py#L270
  7. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_testing/asserters.py#L483
  8. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_config/localization.py#L43
  9. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_config/localization.py#L71
  10. too-many-try-statements:
    try clause contains 4 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/_config/localization.py#L144
  11. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/compat/pickle_compat.py#L31
  12. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/compat/pickle_compat.py#L42
  13. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/compat/pickle_compat.py#L197
  14. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/compat/pickle_compat.py#L233
  15. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/compat/_compressors.py#L12
  16. too-many-try-statements:
    try clause contains 7 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/compat/pyarrow.py#L7
  17. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/generic.py#L5841
  18. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/generic.py#L5854
  19. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/frame.py#L3993
  20. too-many-try-statements:
    try clause contains 5 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/frame.py#L4131
  21. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/construction.py#L572
  22. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/nanops.py#L93
  23. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/nanops.py#L1061
  24. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/nanops.py#L1728
  25. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/resample.py#L444
  26. too-many-try-statements:
    try clause contains 3 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/resample.py#L1194
  27. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/sorting.py#L565
  28. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/common.py#L86
  29. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/apply.py#L704
  30. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/algorithms.py#L1762
  31. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/series.py#L930
  32. too-many-try-statements:
    try clause contains 2 statements, expected at most 1
    https://github.com/pandas-dev/pandas/blob/8020bf1b25ef50ae22f8c799df6982804a2bd543/pandas/core/reshape/pivot.py#L150
  33. too-many-try-statements:
    *try clause contain...

This comment was truncated because GitHub allows only 65536 characters in a comment.

This comment was generated for commit ebc47b0

@nickdrozd nickdrozd deleted the broad-try branch November 18, 2022 20:39
@Pierre-Sassoulas
Copy link
Member

It seems like the primer are using our pylintrc by default and not the default values for pylint which is probably not what we want..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news 🔇 This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants