We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AttributeError: 'Raise' object has no attribute 'value'
### What's wrong

```
Traceback (most recent call last):
  File "site-packages/wemake_python_styleguide/checker.py", line 154, in run
    visitor.run()
  File "site-packages/wemake_python_styleguide/visitors/base.py", line 191, in run
    self.visit(self.tree)
  File "site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
    return route_visit(self, tree)
  File "site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
    return getattr(
  File "/usr/local/lib/python3.9/ast.py", line 415, in generic_visit
    self.visit(item)
  File "site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
    return route_visit(self, tree)
  File "site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
    return getattr(
  File "/usr/local/lib/python3.9/ast.py", line 415, in generic_visit
    self.visit(item)
  File "site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
    return route_visit(self, tree)
  File "site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
    return getattr(
  File "site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 28, in visit_any_function
    self._check_function_annotations_complexity(node)
  File "site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 46, in _check_function_annotations_complexity
    self._check_annotations_complexity(node, annotations)
  File "site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 55, in _check_annotations_complexity
    complexity = get_annotation_complexity(annotation)
  File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 38, in get_annotation_complexity
    return 1 + get_annotation_complexity(get_slice_expr(annotation_node))
  File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 40, in get_annotation_complexity
    return max(
  File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 41, in <genexpr>
    (get_annotation_complexity(node) for node in annotation_node.elts),
  File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 31, in get_annotation_complexity
    annotation_node = ast.parse(  # type: ignore
AttributeError: 'Raise' object has no attribute 'value'
```

### How it should be

--

### Flake8 version and plugins

```json
{
  "dependencies": [],
  "platform": {
    "python_implementation": "CPython",
    "python_version": "3.9.0",
    "system": "Linux"
  },
  "plugins": [
    {
      "is_local": false,
      "plugin": "flake8-bandit",
      "version": "2.1.2"
    },
    {
      "is_local": false,
      "plugin": "flake8-broken-line",
      "version": "0.4.0"
    },
    {
      "is_local": false,
      "plugin": "flake8-bugbear",
      "version": "21.11.29"
    },
    {
      "is_local": false,
      "plugin": "flake8-comprehensions",
      "version": "3.8.0"
    },
    {
      "is_local": false,
      "plugin": "flake8-darglint",
      "version": "1.8.1"
    },
    {
      "is_local": false,
      "plugin": "flake8-debugger",
      "version": "4.0.0"
    },
    {
      "is_local": false,
      "plugin": "flake8-docstrings",
      "version": "1.6.0, pydocstyle: 6.1.1"
    },
    {
      "is_local": false,
      "plugin": "flake8-eradicate",
      "version": "1.2.0"
    },
    {
      "is_local": false,
      "plugin": "flake8-string-format",
      "version": "0.3.0"
    },
    {
      "is_local": false,
      "plugin": "flake8_commas",
      "version": "2.1.0"
    },
    {
      "is_local": false,
      "plugin": "flake8_isort",
      "version": "4.1.1"
    },
    {
      "is_local": false,
      "plugin": "flake8_quotes",
      "version": "3.3.1"
    },
    {
      "is_local": false,
      "plugin": "mccabe",
      "version": "0.6.1"
    },
    {
      "is_local": false,
      "plugin": "naming",
      "version": "0.12.1"
    },
    {
      "is_local": false,
      "plugin": "pycodestyle",
      "version": "2.8.0"
    },
    {
      "is_local": false,
      "plugin": "pyflakes",
      "version": "2.4.0"
    },
    {
      "is_local": false,
      "plugin": "rst-docstrings",
      "version": "0.2.5"
    },
    {
      "is_local": false,
      "plugin": "wemake_python_styleguide",
      "version": "0.16.0"
    }
  ],
  "version": "4.0.1"
}
```

### pip information

```
astor==0.8.1
attrs==21.4.0
bandit==1.7.2
darglint==1.8.1
docutils==0.18.1
eradicate==2.0.0
flake8==4.0.1
flake8-bandit==2.1.2
flake8-broken-line==0.4.0
flake8-bugbear==21.11.29
flake8-codes==0.2.0
flake8-commas==2.1.0
flake8-comprehensions==3.8.0
flake8-debugger==4.0.0
flake8-docstrings==1.6.0
flake8-eradicate==1.2.0
flake8-isort==4.1.1
flake8-polyfill==1.0.2
flake8-quotes==3.3.1
flake8-rst-docstrings==0.2.5
flake8-string-format==0.3.0
GitPython==3.1.26
isort==5.10.1
mccabe==0.6.1
pbr==5.8.0
pep8-naming==0.12.1
pycodestyle==2.8.0
pydocstyle==6.1.1
pyflakes==2.4.0
Pygments==2.11.2
PyYAML==6.0
restructuredtext-lint==1.3.2
six==1.16.0
smmap==5.0.0
snowballstemmer==2.2.0
stevedore==3.5.0
testfixtures==6.18.3
typing_extensions==4.0.1
unify==0.5
untokenize==0.1.1
urllib3==1.26.8
wemake-python-styleguide==0.16.0
```

### OS information

Linux rock 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `wemake_python_styleguide/logic/complexity/annotations.py`
Content:
```
1 """
2 Counts annotation complexity by getting the nesting level of nodes.
3 
4 So ``List[int]`` complexity is 2
5 and ``Tuple[List[Optional[str]], int]`` is 4.
6 
7 Adapted from: https://github.com/best-doctor/flake8-annotations-complexity
8 """
9 
10 import ast
11 from typing import Union
12 
13 from wemake_python_styleguide.compat.functions import get_slice_expr
14 
15 _Annotation = Union[
16     ast.expr,
17     ast.Str,
18 ]
19 
20 
21 def get_annotation_complexity(annotation_node: _Annotation) -> int:
22     """
23     Recursively counts complexity of annotation nodes.
24 
25     When annotations are written as strings,
26     we additionally parse them to ``ast`` nodes.
27     """
28     if isinstance(annotation_node, ast.Str):
29         # try to parse string-wrapped annotations
30         try:
31             annotation_node = ast.parse(  # type: ignore
32                 annotation_node.s,
33             ).body[0].value
34         except (SyntaxError, IndexError):
35             return 1
36 
37     if isinstance(annotation_node, ast.Subscript):
38         return 1 + get_annotation_complexity(get_slice_expr(annotation_node))
39     elif isinstance(annotation_node, (ast.Tuple, ast.List)):
40         return max(
41             (get_annotation_complexity(node) for node in annotation_node.elts),
42             default=1,
43         )
44     return 1
45
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/wemake_python_styleguide/logic/complexity/annotations.py b/wemake_python_styleguide/logic/complexity/annotations.py
--- a/wemake_python_styleguide/logic/complexity/annotations.py
+++ b/wemake_python_styleguide/logic/complexity/annotations.py
@@ -31,7 +31,7 @@
             annotation_node = ast.parse(  # type: ignore
                 annotation_node.s,
             ).body[0].value
-        except (SyntaxError, IndexError):
+        except Exception:
             return 1
 
     if isinstance(annotation_node, ast.Subscript):

{"golden_diff": "diff --git a/wemake_python_styleguide/logic/complexity/annotations.py b/wemake_python_styleguide/logic/complexity/annotations.py\n--- a/wemake_python_styleguide/logic/complexity/annotations.py\n+++ b/wemake_python_styleguide/logic/complexity/annotations.py\n@@ -31,7 +31,7 @@\n             annotation_node = ast.parse(  # type: ignore\n                 annotation_node.s,\n             ).body[0].value\n-        except (SyntaxError, IndexError):\n+        except Exception:\n             return 1\n \n     if isinstance(annotation_node, ast.Subscript):\n", "issue": "AttributeError: 'Raise' object has no attribute 'value'\n### What's wrong\n\n```\r\nTraceback (most recent call last):\r\n  File \"site-packages/wemake_python_styleguide/checker.py\", line 154, in run\r\n    visitor.run()\r\n  File \"site-packages/wemake_python_styleguide/visitors/base.py\", line 191, in run\r\n    self.visit(self.tree)\r\n  File \"site-packages/wemake_python_styleguide/visitors/base.py\", line 186, in visit\r\n    return route_visit(self, tree)\r\n  File \"site-packages/wemake_python_styleguide/compat/routing.py\", line 36, in route_visit\r\n    return getattr(\r\n  File \"/usr/local/lib/python3.9/ast.py\", line 415, in generic_visit\r\n    self.visit(item)\r\n  File \"site-packages/wemake_python_styleguide/visitors/base.py\", line 186, in visit\r\n    return route_visit(self, tree)\r\n  File \"site-packages/wemake_python_styleguide/compat/routing.py\", line 36, in route_visit\r\n    return getattr(\r\n  File \"/usr/local/lib/python3.9/ast.py\", line 415, in generic_visit\r\n    self.visit(item)\r\n  File \"site-packages/wemake_python_styleguide/visitors/base.py\", line 186, in visit\r\n    return route_visit(self, tree)\r\n  File \"site-packages/wemake_python_styleguide/compat/routing.py\", line 36, in route_visit\r\n    return getattr(\r\n  File \"site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py\", line 28, in visit_any_function\r\n    self._check_function_annotations_complexity(node)\r\n  File \"site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py\", line 46, in _check_function_annotations_complexity\r\n    self._check_annotations_complexity(node, annotations)\r\n  File \"site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py\", line 55, in _check_annotations_complexity\r\n    complexity = get_annotation_complexity(annotation)\r\n  File \"site-packages/wemake_python_styleguide/logic/complexity/annotations.py\", line 38, in get_annotation_complexity\r\n    return 1 + get_annotation_complexity(get_slice_expr(annotation_node))\r\n  File \"site-packages/wemake_python_styleguide/logic/complexity/annotations.py\", line 40, in get_annotation_complexity\r\n    return max(\r\n  File \"site-packages/wemake_python_styleguide/logic/complexity/annotations.py\", line 41, in <genexpr>\r\n    (get_annotation_complexity(node) for node in annotation_node.elts),\r\n  File \"site-packages/wemake_python_styleguide/logic/complexity/annotations.py\", line 31, in get_annotation_complexity\r\n    annotation_node = ast.parse(  # type: ignore\r\nAttributeError: 'Raise' object has no attribute 'value'\r\n```\n\n### How it should be\n\n--\n\n### Flake8 version and plugins\n\n```json\r\n{\r\n  \"dependencies\": [],\r\n  \"platform\": {\r\n    \"python_implementation\": \"CPython\",\r\n    \"python_version\": \"3.9.0\",\r\n    \"system\": \"Linux\"\r\n  },\r\n  \"plugins\": [\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-bandit\",\r\n      \"version\": \"2.1.2\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-broken-line\",\r\n      \"version\": \"0.4.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-bugbear\",\r\n      \"version\": \"21.11.29\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-comprehensions\",\r\n      \"version\": \"3.8.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-darglint\",\r\n      \"version\": \"1.8.1\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-debugger\",\r\n      \"version\": \"4.0.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-docstrings\",\r\n      \"version\": \"1.6.0, pydocstyle: 6.1.1\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-eradicate\",\r\n      \"version\": \"1.2.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8-string-format\",\r\n      \"version\": \"0.3.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8_commas\",\r\n      \"version\": \"2.1.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8_isort\",\r\n      \"version\": \"4.1.1\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"flake8_quotes\",\r\n      \"version\": \"3.3.1\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"mccabe\",\r\n      \"version\": \"0.6.1\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"naming\",\r\n      \"version\": \"0.12.1\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"pycodestyle\",\r\n      \"version\": \"2.8.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"pyflakes\",\r\n      \"version\": \"2.4.0\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"rst-docstrings\",\r\n      \"version\": \"0.2.5\"\r\n    },\r\n    {\r\n      \"is_local\": false,\r\n      \"plugin\": \"wemake_python_styleguide\",\r\n      \"version\": \"0.16.0\"\r\n    }\r\n  ],\r\n  \"version\": \"4.0.1\"\r\n}\r\n```\n\n### pip information\n\n```\r\nastor==0.8.1\r\nattrs==21.4.0\r\nbandit==1.7.2\r\ndarglint==1.8.1\r\ndocutils==0.18.1\r\neradicate==2.0.0\r\nflake8==4.0.1\r\nflake8-bandit==2.1.2\r\nflake8-broken-line==0.4.0\r\nflake8-bugbear==21.11.29\r\nflake8-codes==0.2.0\r\nflake8-commas==2.1.0\r\nflake8-comprehensions==3.8.0\r\nflake8-debugger==4.0.0\r\nflake8-docstrings==1.6.0\r\nflake8-eradicate==1.2.0\r\nflake8-isort==4.1.1\r\nflake8-polyfill==1.0.2\r\nflake8-quotes==3.3.1\r\nflake8-rst-docstrings==0.2.5\r\nflake8-string-format==0.3.0\r\nGitPython==3.1.26\r\nisort==5.10.1\r\nmccabe==0.6.1\r\npbr==5.8.0\r\npep8-naming==0.12.1\r\npycodestyle==2.8.0\r\npydocstyle==6.1.1\r\npyflakes==2.4.0\r\nPygments==2.11.2\r\nPyYAML==6.0\r\nrestructuredtext-lint==1.3.2\r\nsix==1.16.0\r\nsmmap==5.0.0\r\nsnowballstemmer==2.2.0\r\nstevedore==3.5.0\r\ntestfixtures==6.18.3\r\ntyping_extensions==4.0.1\r\nunify==0.5\r\nuntokenize==0.1.1\r\nurllib3==1.26.8\r\nwemake-python-styleguide==0.16.0\r\n```\n\n### OS information\n\nLinux rock 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux\n", "before_files": [{"content": "\"\"\"\nCounts annotation complexity by getting the nesting level of nodes.\n\nSo ``List[int]`` complexity is 2\nand ``Tuple[List[Optional[str]], int]`` is 4.\n\nAdapted from: https://github.com/best-doctor/flake8-annotations-complexity\n\"\"\"\n\nimport ast\nfrom typing import Union\n\nfrom wemake_python_styleguide.compat.functions import get_slice_expr\n\n_Annotation = Union[\n    ast.expr,\n    ast.Str,\n]\n\n\ndef get_annotation_complexity(annotation_node: _Annotation) -> int:\n    \"\"\"\n    Recursively counts complexity of annotation nodes.\n\n    When annotations are written as strings,\n    we additionally parse them to ``ast`` nodes.\n    \"\"\"\n    if isinstance(annotation_node, ast.Str):\n        # try to parse string-wrapped annotations\n        try:\n            annotation_node = ast.parse(  # type: ignore\n                annotation_node.s,\n            ).body[0].value\n        except (SyntaxError, IndexError):\n            return 1\n\n    if isinstance(annotation_node, ast.Subscript):\n        return 1 + get_annotation_complexity(get_slice_expr(annotation_node))\n    elif isinstance(annotation_node, (ast.Tuple, ast.List)):\n        return max(\n            (get_annotation_complexity(node) for node in annotation_node.elts),\n            default=1,\n        )\n    return 1\n", "path": "wemake_python_styleguide/logic/complexity/annotations.py"}], "after_files": [{"content": "\"\"\"\nCounts annotation complexity by getting the nesting level of nodes.\n\nSo ``List[int]`` complexity is 2\nand ``Tuple[List[Optional[str]], int]`` is 4.\n\nAdapted from: https://github.com/best-doctor/flake8-annotations-complexity\n\"\"\"\n\nimport ast\nfrom typing import Union\n\nfrom wemake_python_styleguide.compat.functions import get_slice_expr\n\n_Annotation = Union[\n    ast.expr,\n    ast.Str,\n]\n\n\ndef get_annotation_complexity(annotation_node: _Annotation) -> int:\n    \"\"\"\n    Recursively counts complexity of annotation nodes.\n\n    When annotations are written as strings,\n    we additionally parse them to ``ast`` nodes.\n    \"\"\"\n    if isinstance(annotation_node, ast.Str):\n        # try to parse string-wrapped annotations\n        try:\n            annotation_node = ast.parse(  # type: ignore\n                annotation_node.s,\n            ).body[0].value\n        except Exception:\n            return 1\n\n    if isinstance(annotation_node, ast.Subscript):\n        return 1 + get_annotation_complexity(get_slice_expr(annotation_node))\n    elif isinstance(annotation_node, (ast.Tuple, ast.List)):\n        return max(\n            (get_annotation_complexity(node) for node in annotation_node.elts),\n            default=1,\n        )\n    return 1\n", "path": "wemake_python_styleguide/logic/complexity/annotations.py"}]}