write an empty file for filter blocks
This commit is contained in:
parent
9be94b7e16
commit
2487ac0214
3
bink.py
3
bink.py
@ -27,7 +27,8 @@ try:
|
|||||||
with open(filters_path, "r") as f:
|
with open(filters_path, "r") as f:
|
||||||
filters = json.load(f)
|
filters = json.load(f)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
with open(filters_path, "w") as f:
|
||||||
|
json.dump(filters, f)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
editor = os.environ["EDITOR"]
|
editor = os.environ["EDITOR"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user