fix: checks

This commit is contained in:
Jalil SA 2023-04-18 22:35:15 -05:00
parent 69f96b9e96
commit 3209eac14f
1 changed files with 2 additions and 3 deletions

View File

@ -11,9 +11,8 @@ from w3lib.http import basic_auth_header
class DataAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
value = str(values).encode("utf-8").decode("utf-8")
if items := re.findall(r"\$(.+)", value):
value = items[0]
items = re.findall(r"\$(.+)", value)
value = items[0] if items else value
setattr(namespace, self.dest, value)