Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. def add_document(data: dict, country: str):
  2. """Writes document to the database.
  3. """
  4.  
  5. # Gaurd clauses
  6. if data.get('Name', None) is None: log.warn("Name is none. Returning"); return
  7. if data.get('url', None) is None: log.warn("URL is none. Returning"); return
  8. <do write>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement