address lint issues (#1117)

This commit is contained in:
bmc-msft
2021-08-02 12:05:10 -04:00
committed by GitHub
parent 95e2ecff3d
commit cfe0ec8d5f
3 changed files with 6 additions and 3 deletions

View File

@ -66,6 +66,6 @@ def create_virtual_network(
resource_group, name, params
)
except (CloudError, ResourceNotFoundError) as err:
return Error(code=ErrorCode.UNABLE_TO_CREATE_NETWORK, errors=[str(err.message)])
return Error(code=ErrorCode.UNABLE_TO_CREATE_NETWORK, errors=[str(err)])
return None