write an empty file for filter blocks

This commit is contained in:
nebula 2025-04-26 21:10:58 +00:00
parent 9be94b7e16
commit 2487ac0214

View File

@ -27,7 +27,8 @@ try:
with open(filters_path, "r") as f:
filters = json.load(f)
except FileNotFoundError:
pass
with open(filters_path, "w") as f:
json.dump(filters, f)
try:
editor = os.environ["EDITOR"]