diff --git a/src/WorkItemMigrator/WorkItemImport/Agent.cs b/src/WorkItemMigrator/WorkItemImport/Agent.cs index 991a3d8..781904f 100644 --- a/src/WorkItemMigrator/WorkItemImport/Agent.cs +++ b/src/WorkItemMigrator/WorkItemImport/Agent.cs @@ -126,6 +126,10 @@ public bool ImportRevision(WiRevision rev, WorkItem wi, Settings settings) { _witClientUtils.CorrectDescription(wi, _context.GetItem(rev.ParentOriginId), rev, _context.Journal.IsAttachmentMigrated); } + catch (AttachmentNotFoundException) + { + throw; + } catch (Exception ex) { Logger.Log(ex, $"Failed to correct description for '{wi.Id}', rev '{rev}'."); @@ -152,6 +156,10 @@ public bool ImportRevision(WiRevision rev, WorkItem wi, Settings settings) _context.Journal.IsAttachmentMigrated ); } + catch (AttachmentNotFoundException) + { + throw; + } catch (Exception ex) { Logger.Log(ex, $"Failed to correct description for '{wi.Id}', rev '{rev}'.");