Skip power restore policy in case of error

Power restore policy can some time can fail in exiting code update
script. We should not be stoping code update due to this failure.
This fix will skip this erorr in code update process.

Resolves openbmc/openbmc-test-automation#253

Change-Id: Ie88f022478aabff054ea0e7fa59d9ca1049182db
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/extended/code_update/update_bmc.robot b/extended/code_update/update_bmc.robot
index 664bdbf..a4b1590 100644
--- a/extended/code_update/update_bmc.robot
+++ b/extended/code_update/update_bmc.robot
@@ -45,7 +45,8 @@
 
     Prune Journal Log
     Initiate Power Off
-    Set Policy Setting   RESTORE_LAST_STATE
+    Run Keyword And Ignore Error
+    ...   Set Policy Setting   RESTORE_LAST_STATE
     Prepare For Update
 
     # Wait time is increased temporary to 10 mins due