We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac2dbf9 commit 12ab12aCopy full SHA for 12ab12a
1 file changed
eosets/utils.py
@@ -104,8 +104,9 @@ def _look_for_prod_band_file(
104
with contextlib.suppress(StopIteration):
105
# Check if the band exists in a non-writable directory
106
band_regex = f"*{prod.condensed_name}*_{band_name}_*"
107
- if "window" in kwargs:
108
- band_regex += f"{get_window_suffix(kwargs.get('window'))}*"
+ window = get_window_suffix(kwargs.get("window"))
+ if window is not None:
109
+ band_regex += f"{window}*"
110
LOGGER.debug(
111
f"Looking for {band_regex} in {prod._get_band_folder(writable=writable)}"
112
)
0 commit comments