diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/preview/PreviewContent.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/preview/PreviewContent.cs index 44faec0868..9ba5f91bd3 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/preview/PreviewContent.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/preview/PreviewContent.cs @@ -202,13 +202,15 @@ namespace umbraco.presentation.preview { file.Delete(); } - catch (Exception ex) + catch (IOException) { // for *some* reason deleting the file can fail, // and it will work later on (long-lasting locks, etc), // so just ignore the exception - - //LogHelper.Error(string.Format("Couldn't delete preview set: {0} - User {1}", file.Name, userId), ex); + } + catch (Exception ex) + { + LogHelper.Error(string.Format("Couldn't delete preview set: {0} - User {1}", file.Name, userId), ex); } }