Commit 5a06b44c authored by Alexander, William's avatar Alexander, William
Browse files

Fixed bug in query.py where 0 was not being taken as a valid index

parent d0fa0e2c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -143,9 +143,6 @@ if __name__ == '__main__':
        exit()

    # checking valid index
    if not index:
        print('Please enter a valid index.')
        exit()
    if any(index < 0 or index > len(seq) for seq in sequence.split(',')):
        print(f'The provided index {index} is outside of the possible range of {sequence}. The first position of the index is 0.')
        exit()