Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
Replaces empty return value with string [(#2709)](GoogleCloudPlatform…
Browse files Browse the repository at this point in the history
…/python-docs-samples#2709)

* Replaces empty return value with string
Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
  • Loading branch information
gguuss authored Jan 10, 2020
1 parent 67eef12 commit ee6d939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/api-client/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ def delete_registry(
registry_path = client.registry_path(project_id, cloud_region, registry_id)

try:
response = client.delete_device_registry(registry_path)
client.delete_device_registry(registry_path)
print('Deleted registry')
return response
return 'Registry deleted'
except HttpError:
print('Error, registry not deleted')
return ""
return 'Registry not deleted'
# [END iot_delete_registry]


Expand Down

0 comments on commit ee6d939

Please sign in to comment.