diff --git a/ush/python/pygfs/task/archive.py b/ush/python/pygfs/task/archive.py index c6376206b3..ed63a22230 100644 --- a/ush/python/pygfs/task/archive.py +++ b/ush/python/pygfs/task/archive.py @@ -487,7 +487,7 @@ def _archive_expdir(self, arch_dict: Dict[str, Any]) -> bool: if current_cycle in [first_full, edate]: # Always save the first and last return True - elif (current_cycle - first_full).total_seconds() % freq == 0: + elif freq != 0 and (current_cycle - first_full).total_seconds() % freq == 0: # Otherwise, the frequency is in hours return True else: