This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |