Skip to content

Commit e564635

Browse files
committed
validate earlier
1 parent 43792b0 commit e564635

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/herbie/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ def __init__(
223223
# (see https://stackoverflow.com/a/7936588/2383070 for what I'm doing here)
224224
getattr(model_templates, self.model).template(self)
225225

226+
# Check the user input
227+
self._validate()
228+
226229
if product is None:
227230
# The user didn't specify a product, so let's use the first
228231
# product in the model template.
@@ -246,9 +249,6 @@ def __init__(
246249

247250
self.search_help = _search_help(self.IDX_STYLE)
248251

249-
# Check the user input
250-
self._validate()
251-
252252
# Ok, now we are ready to look for the GRIB2 file at each of the remote sources.
253253
# self.grib is the first existing GRIB2 file discovered.
254254
# self.idx is the first existing index file discovered.

0 commit comments

Comments
 (0)