Commit cc827f1f by Karsa Zoltán István

try block

parent 7e3037d9
...@@ -494,7 +494,10 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin, ...@@ -494,7 +494,10 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
import requests as req import requests as req
if self.hookurl: if self.hookurl:
logger.info("notify remote host (callhookurl): " + str(self.hookurl)) logger.info("notify remote host (callhookurl): " + str(self.hookurl))
req.post(url=str(self.hookurl)) try:
req.post(url=str(self.hookurl))
except:
logger.info("Error when call hookurl: " + str(self.hookurl))
def _update_status(self): def _update_status(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment