Skip to content

Commit

Permalink
DAOTHER-9063: Fix AttributeError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yokochi47 committed Apr 4, 2024
1 parent 85f391c commit 5b54063
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wwpdb/utils/nmr/NmrDpUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -53174,7 +53174,7 @@ def __mergeLegacyCsAndMr(self):
constraint_type = 'residual dipolar coupling'
constraint_subsubtype = sf_item.get('constraint_subsubtype')

if 'ID' in sf_item['loop'].tags:
try:
id_col = sf_item['loop'].tags.index('ID')

count = 0
Expand All @@ -53187,6 +53187,8 @@ def __mergeLegacyCsAndMr(self):
count += 1

sf_item['id'] = count
except AttributeError:
pass

row[6], row[7], row[8], row[9] =\
constraint_type, constraint_subtype, constraint_subsubtype, sf_item['id']
Expand Down

0 comments on commit 5b54063

Please sign in to comment.