Skip to content

Instantly share code, notes, and snippets.

View mcpaddy's full-sized avatar

Patrick Varley mcpaddy

  • Pinecone
  • Manchester, UK
View GitHub Profile
from couchbase import Couchbase
from couchbase.exceptions import CouchbaseError
c = Couchbase.connect(bucket='beer-sample', host='localhost')
try:
beer = c.get("aass_brewery-juleol")
except CouchbaseError as e:
print "Couldn't retrieve value for key", e