Remove unnecessary pass statement (#61749)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-09-09 10:12:11 +05:30 committed by GitHub
parent a680ff2ade
commit 92099d7f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 3 deletions

View file

@ -340,7 +340,6 @@ class AzureRMIoTDeviceModule(AzureRMModuleBase):
url = '/devices/{0}/modules/{1}'.format(self.device, self.name) url = '/devices/{0}/modules/{1}'.format(self.device, self.name)
return self._https_get(url, self.query_parameters, self.header_parameters) return self._https_get(url, self.query_parameters, self.header_parameters)
except Exception: except Exception:
pass
return None return None
def get_twin(self): def get_twin(self):

View file

@ -819,7 +819,6 @@ class AzureRMIoTHub(AzureRMModuleBase):
try: try:
return self.IoThub_client.iot_hub_resource.get(self.resource_group, self.name) return self.IoThub_client.iot_hub_resource.get(self.resource_group, self.name)
except Exception: except Exception:
pass
return None return None
def create_or_update_hub(self, hub): def create_or_update_hub(self, hub):

View file

@ -328,7 +328,6 @@ class AzureRMSnapshots(AzureRMModuleBaseExt):
response = json.loads(response.text) response = json.loads(response.text)
except Exception: except Exception:
response = {'text': response.text} response = {'text': response.text}
pass
return response return response