add a warning message for wildcards without files pt2

pull/2/head
AUTOMATIC 2022-10-22 15:06:56 +03:00
parent bec4dd53cd
commit e541bf5af8
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class WildcardsScript(scripts.Script):
return scripts.AlwaysVisible
def replace_wildcard(self, text):
if " " in text:
if " " in text or len(text)==0:
return text
replacement_file = os.path.join(scripts.basedir(), f"wildcards/{text}.txt")