Skip to content

Commit

Permalink
Fix [Issue] 'Options' object has no attribute 'prompt_attention' #2
Browse files Browse the repository at this point in the history
  • Loading branch information
acorderob committed Aug 18, 2023
1 parent ac4a8e7 commit 72d3866
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sendtonegative.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from collections import namedtuple
import logging
import re
import lark


class SendToNegative: # pylint: disable=too-few-public-methods
NAME = "Send to Negative"
VERSION = "2.1"
VERSION = "2.1.1"

DEFAULT_SEPARATOR = ", "

Expand Down Expand Up @@ -35,7 +34,7 @@ def __init__(
iN - tags the position of insertion point N. Used only in the negative prompt and does not accept content. N can be 0 to 9.
"""
self.__logger = log
if opts is not None and opts.prompt_attention == "Compel parser":
if opts is not None and getattr(opts, "prompt_attention", "") == "Compel parser":
self.__logger.warning("Compel parser is not supported!")
self.__ignore_repeats = (
ignore_repeats if ignore_repeats is not None else getattr(opts, "stn_ignorerepeats", True)
Expand Down

0 comments on commit 72d3866

Please sign in to comment.