Skip to content

TypeError: object of type 'NoneType' has no len() #14

Description

@awarenessaspie

Traceback (most recent call last):
File "C:\Users\hawke\JailbreakingLLMs\main.py", line 188, in
main(args)
File "C:\Users\hawke\JailbreakingLLMs\main.py", line 38, in main
extracted_attack_list = attackLM.get_attack(convs_list, processed_response_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hawke\JailbreakingLLMs\conversers.py", line 86, in get_attack
full_prompts.append(conv.get_prompt()[:-len(conv.sep2)])
^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()

I encounter this error. What should I do?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions