Skip to content

Commit d360078

Browse files
joke1196guillaume-dequenne
authored andcommitted
Fix Sonar issues
1 parent 032fb55 commit d360078

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/py_sonar_scanner/configuration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from __future__ import annotations
2121
import os
2222
import sys
23-
from typing import Union, AnyStr
2423
import toml
2524

2625

@@ -38,7 +37,6 @@ def __init__(self):
3837

3938
def setup(self) -> None:
4039
"""This is executed when run from the command line"""
41-
4240
scan_arguments = sys.argv[1:]
4341
scan_arguments.extend(self._read_toml_args())
4442

@@ -55,6 +53,7 @@ def _read_toml_args(self) -> list[str]:
5553
self._add_parameter_to_scanner_args(scan_arguments, key, value)
5654
except BaseException as e:
5755
print(e)
56+
raise e
5857
return scan_arguments
5958

6059
def _add_parameter_to_scanner_args(self, scan_arguments: list[str], key: str, value: Union[str, dict]):

0 commit comments

Comments
 (0)