diff --git a/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingEncryptionService.cs b/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingEncryptionService.cs index 45a3362d30..6fffb2c93c 100644 --- a/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingEncryptionService.cs +++ b/framework/src/Volo.Abp.Settings/Volo/Abp/Settings/SettingEncryptionService.cs @@ -38,9 +38,15 @@ public class SettingEncryptionService : ISettingEncryptionService, ITransientDep { return StringEncryptionService.Decrypt(encryptedValue); } + catch (FormatException) + { + // not an encrypted value, return the original value + return encryptedValue; + } catch (Exception e) { Logger.LogException(e); + return string.Empty; } }