Fix Syntax Error in TBG_Refiner.py#67
Open
deadpipe wants to merge 2 commits into
Open
Conversation
Added single quotes ( ' ' ) to fix syntax error
Added single quotes ( ' ' ) to fix syntax error
Owner
|
What system are you using? I’m not seeing any issues on Windows ComfyUI 0.21 portable—could this be a Linux-only bug or it's a Python version compatibility issue that affects both platforms, but you might be running different Python versions. 3.12+ has no problem. Python Version Behavior F-strings cannot contain the same type of quote used to delimit the f-string itself f"...{obj.get("prompts")}..." fails because the inner " closes the outer f-string prematurely Python 3.12+: F-strings were enhanced to allow quote reuse and more complex expressions The same syntax would work fine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for sharing this custom node.
I just installed it and noticed a syntax error during startup.
Fixed it by replacing the inner
double quotes ( " " )withsingle quotes ( ' ' )inside the f-stringsError:
and