Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @staticmethod
- def create_Container(client, id):
- ...
- except errors.CosmosError as e:
- if e.status_code == 409:
- print('A collection with id '{0}' already exists'.format(collection['id']))
- else:
- raise errors.HTTPFailure(e.status_code)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement