diff --git a/Ginger/GingerCoreCommon/Actions/Act.cs b/Ginger/GingerCoreCommon/Actions/Act.cs index 5c300a156a..e67fdc0974 100644 --- a/Ginger/GingerCoreCommon/Actions/Act.cs +++ b/Ginger/GingerCoreCommon/Actions/Act.cs @@ -192,7 +192,7 @@ public bool SupportSimulation /// Gets a value indicating whether automatic screenshot capture is enabled on failure. /// private bool mAutoScreenShotOnFailure = true; - [IsSerializedForLocalRepository] + [IsSerializedForLocalRepository(DefaultValue:true)] public bool AutoScreenShotOnFailure { get { @@ -207,7 +207,6 @@ public bool AutoScreenShotOnFailure } } } - public virtual eLocateBy LocateBy { get diff --git a/Ginger/GingerCoreCommon/Repository/RepositoryItemBase.cs b/Ginger/GingerCoreCommon/Repository/RepositoryItemBase.cs index 3fc373063c..4773cfaf2c 100644 --- a/Ginger/GingerCoreCommon/Repository/RepositoryItemBase.cs +++ b/Ginger/GingerCoreCommon/Repository/RepositoryItemBase.cs @@ -342,6 +342,11 @@ public bool CreateBackup(bool isLocalBackup = false) return true; } + catch (Exception ex) + { + Reporter.ToLog(eLogLevel.DEBUG, "Exception while creating backup", ex); + return false; + } finally { mBackupInProgress = false;