Skip to content

Commit

Permalink
🐛 hotfix failing explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Aug 22, 2024
1 parent 5cee89e commit 5ecc3c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etl/explorer_helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path
from typing import Any, Dict, List, Optional, Union

Expand Down Expand Up @@ -40,7 +41,8 @@ def __init__(self, name: str):
# Columns table of the explorer.
self.df_columns = pd.DataFrame([], columns=["variableId"])

if self.path.exists():
# added os.environ.get("EXPLORER") as hotfix
if self.path.exists() and os.environ.get("EXPLORER"):
log.info(f"Loading explorer file {self.path}.")
# Read explorer from existing file.
self._load_content()
Expand Down

0 comments on commit 5ecc3c2

Please sign in to comment.