Skip to content

Commit

Permalink
change exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred-sun committed Dec 29, 2021
1 parent cb589de commit c9baa36
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get(self):
vm_scale_set_name=self.vmss_name,
instance_id=self.instance_id)
self.log("Response : {0}".format(response))
except CloudError as e:
except Exception as e:
self.log('Could not get facts for Virtual Machine Scale Set VM.')

if response and self.has_tags(response.tags, self.tags):
Expand All @@ -195,7 +195,7 @@ def list(self):
items = self.mgmt_client.virtual_machine_scale_set_vms.list(resource_group_name=self.resource_group,
virtual_machine_scale_set_name=self.vmss_name)
self.log("Response : {0}".format(items))
except CloudError as e:
except Exception as e:
self.log('Could not get facts for Virtual Machine ScaleSet VM.')

results = []
Expand Down

0 comments on commit c9baa36

Please sign in to comment.