Skip to content

Commit

Permalink
leave a note about urlfetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Golub committed Mar 11, 2010
1 parent fdd1e07 commit cacdca1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def set_sup_header(self, url=None):
"http://friendfeed.com/api/public-sup.json#" + sup_id)

def ping(self):
# Swallow exceptions when pinging, urlfetch can be unstable and it
# isn't the end of the world if a ping doesn't make it. Since we don't
# care about the response, in an ideal world, the urlfetch API would
# have an option to perform all of this asynchronously and optionally
# specify a number of retries
feed = "http://" + self.request.host + "/?format=atom"
args = urllib.urlencode({
"name": self.application.settings["blog_title"],
Expand Down

0 comments on commit cacdca1

Please sign in to comment.