diff options
-rw-r--r-- | utils/notectl.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/notectl.py b/utils/notectl.py index f64a371..12e804e 100644 --- a/utils/notectl.py +++ b/utils/notectl.py @@ -39,6 +39,7 @@ def new_post(): p = postutil.process_post(postpath, False) if len(p.content) == 0 and len(p.media) == 0: print("No post was made.") + os.remove(postpath) return print(f"Post {os.path.basename(postpath)} made!") m = Monolith(os.path.join(conf.LOCAL_DATA_ROOT, "posts.monolith")) |