f = getattr(bottle, 'capacity', None) if f: print f()