Avoid wrapping cancellation exception (#26)

This commit is contained in:
Jedd Morgan
2024-07-11 14:58:08 +01:00
committed by GitHub
parent da792173ff
commit db88dbe6d0
@@ -96,7 +96,7 @@ public class BaseObjectSerializerV2
}
converted = x;
}
catch (Exception ex) when (!ex.IsFatal())
catch (Exception ex) when (!ex.IsFatal() && ex is not OperationCanceledException)
{
throw new SpeckleSerializeException($"Failed to extract (pre-serialize) properties from the {baseObj}", ex);
}