From 029a935a117d53d218953fe8776ee6aa0dadddfe Mon Sep 17 00:00:00 2001 From: vishnuchalla Date: Tue, 28 Nov 2023 15:20:31 -0500 Subject: [PATCH] NPE fix in case of no tags (#95) Co-authored-by: Vishnu Challa --- dittybopper/syncer/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dittybopper/syncer/entrypoint.py b/dittybopper/syncer/entrypoint.py index 8142ed3..f2bf23e 100644 --- a/dittybopper/syncer/entrypoint.py +++ b/dittybopper/syncer/entrypoint.py @@ -16,7 +16,7 @@ class GrafanaOperations: def __init__(self, grafana_url: str, input_directory: str, git_commit_hash: str): self.grafana_url = grafana_url self.input_directory = input_directory - self.git_commit_hash = git_commit_hash + self.git_commit_hash = git_commit_hash if git_commit_hash else '' self.dashboards = defaultdict(list) self.folder_map = dict() self.logger = logging.getLogger(__name__)