Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. @staticmethod
  2. def create_Container(client, id):
  3. ...
  4. except errors.CosmosError as e:
  5. if e.status_code == 409:
  6. print('A collection with id '{0}' already exists'.format(collection['id']))
  7. else:
  8. raise errors.HTTPFailure(e.status_code)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement