Skip to content

Commit

Permalink
Check for None before lazily loading parans
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtabor committed Aug 9, 2018
1 parent 6ed85a0 commit f83393a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def make_job_spec(self):
:return: Returns a GPJobSpec used to launch a job of this task type
"""
# If the parameters haven't been loaded yet, do so
if not self._params_loaded:
if not self._params_loaded and self.server_data is not None:
self.param_load()

return GPJobSpec(self.server_data, self.lsid)
Expand Down

0 comments on commit f83393a

Please sign in to comment.