Skip to content

Commit

Permalink
Do not call extract_cert on empty events
Browse files Browse the repository at this point in the history
  • Loading branch information
waschinski committed Jun 18, 2024
1 parent 9a8e86c commit 6e7a8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class ConfigFileHandler(FileSystemEventHandler):
def on_modified(self, event):
if event.src_path == INPUT_PATH + "/cosmos.config.json":
if event.src_path == INPUT_PATH + "/cosmos.config.json" and os.path.getsize(event.src_path) > 0:
extract_cert()

def extract_cert():
Expand Down

0 comments on commit 6e7a8ac

Please sign in to comment.