Skip to content

Commit b8188dd

Browse files
committed
gp_params is not None
1 parent 92989d6 commit b8188dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

qiita_db/archive.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ def get_merging_scheme_from_job(cls, job):
129129
if not parent_merging_scheme['ignore_parent_command']:
130130
gp = parent.parents[0]
131131
gp_params = gp.processing_parameters
132-
gp_cmd = gp_params.command
133-
134-
phms = qdb.util.human_merging_scheme(
135-
parent_cmd_name, parent_merging_scheme, gp_cmd.name,
136-
gp_cmd.merging_scheme, parent_parameters, [],
137-
gp_params.values)
132+
if gp_params is not None:
133+
gp_cmd = gp_params.command
134+
phms = qdb.util.human_merging_scheme(
135+
parent_cmd_name, parent_merging_scheme,
136+
gp_cmd.name, gp_cmd.merging_scheme,
137+
parent_parameters, [], gp_params.values)
138138

139139
hms = qdb.util.human_merging_scheme(
140140
acmd.name, acmd.merging_scheme,

0 commit comments

Comments
 (0)