Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
YiChiCanCode committed Aug 27, 2024
1 parent 52cd887 commit bc4cf6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions importer_client/python/tools/timesketch_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,14 @@ def upload_file(
def comma_separated_list(value):
return value.split(",")


def comma_separated_int_list(value):
try:
return [int(x) for x in value.split(',')]
except ValueError:
raise argparse.ArgumentTypeError("Values must be integers separated by commas")
return [int(x) for x in value.split(",")]
except ValueError as exc:
raise argparse.ArgumentTypeError(
"Values must be integers separated by commas"
) from exc


def main(args=None):
Expand Down

0 comments on commit bc4cf6a

Please sign in to comment.