Traceback (most recent call last):
  File "/var/www/pottery/wsgi/lib/charlotte.py", line 209, in run
    output = page.render()
  File "/var/www/pottery/wsgi/bin/pottery", line 65, in render
    return self.page(str(self.template(content,argpath)))
  File "/var/www/pottery/wsgi/lib/compose.py", line 130, in __str__
    raise e
ImgurClientError: (500) failed to get album

def composition(self):
  global __s
  __s += '\n<p>\n\n<div id="potshowdiv" class="cycle-slideshow"\n     data-cycle-loader="true"\n     data-cycle-progressive="#pots"\n     data-cycle-center-horz="true"\n     data-cycle-pause-on-hover="true"\n     >\t\t\t\t\t\t\t\n\n'
  import os,random

  import sys

  
  pots = self.page.homeimages() #os.listdir('/var/www/htdocs/images/pots')

  

  if len(pots)>0:

    random.shuffle(pots)

    def img(path):

      self.add('<img class="home" width="700" src="%s" />\n' % path)  

    img(pots[0])

    self.add('<script id="pots" type="text/cycle">')

    for pot in pots[1:]:

      img(pot)

    self.add("</script")
  __s += '\n   \n</div>\n\n'
  return __s

__result = composition(__composer)