Skip to content

Commit

Permalink
Merge pull request #517 from Foxbond/dev_handleIncorrectInput
Browse files Browse the repository at this point in the history
Gracefully handle input which contains leading/trailling comma
  • Loading branch information
ThioJoe authored Feb 3, 2022
2 parents 9fb74c7 + 5a4377a commit 3b9fb62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ def exclude_authors(current, config, miscData, excludedCommentsDict, authorsToEx
inputtedString = input("\nEnter the list of only authors to delete: ")

else:
result = result.strip(',') # Remove leading/trailing comma
result = utils.expand_ranges(result) # Expands ranges of numbers into a list of numbers
chosenSampleIndexes = result.split(",")
valid = True
Expand Down

0 comments on commit 3b9fb62

Please sign in to comment.