|
21 | 21 | from ietf.person.name import name_parts |
22 | 22 | from redesign.importing.utils import old_person_to_person, person_name, dont_save_queries |
23 | 23 | from ietf.name.utils import name |
24 | | -from ietf.idtracker.models import InternetDraft, IDInternal, IESGLogin, DocumentComment, PersonOrOrgInfo, Rfc, IESGComment, IESGDiscuss, BallotInfo, Position |
| 24 | +from ietf.idtracker.models import InternetDraft, IDInternal, IESGLogin, DocumentComment, PersonOrOrgInfo, Rfc, IESGComment, IESGDiscuss, BallotInfo, Position, Area |
25 | 25 | from ietf.idrfc.models import RfcIndex, DraftVersions |
26 | 26 | from ietf.idrfc.mirror_rfc_index import get_std_level_mapping, get_stream_mapping |
27 | 27 | from ietf.ietfworkflows.models import StreamedID, AnnotationTag, ContentType, ObjectHistoryEntry, ObjectWorkflowHistoryEntry, ObjectAnnotationTagHistoryEntry, ObjectStreamHistoryEntry, StateObjectRelationMetadata |
@@ -353,8 +353,11 @@ def import_from_idinternal(d, idinternal): |
353 | 353 | d.notify = idinternal.state_change_notice_to or "" |
354 | 354 | d.note = (idinternal.note or "").replace('<br>', '\n').strip().replace('\n', '<br>') |
355 | 355 |
|
356 | | - if idinternal.area_acronym and d.group.type_id == "individ": |
357 | | - d.group = Group.objects.get(acronym=idinternal.area_acronym.area_acronym.acronym) |
| 356 | + try: |
| 357 | + if idinternal.area_acronym and d.group.type_id == "individ": |
| 358 | + d.group = Group.objects.get(acronym=idinternal.area_acronym.area_acronym.acronym) |
| 359 | + except Area.DoesNotExist: |
| 360 | + pass |
358 | 361 |
|
359 | 362 | d.save() |
360 | 363 |
|
|
0 commit comments