[repo] move cursor creation into the try/except, it may raises an InterfaceError if the connection is closed
# copyright %(year)s %(author)s, all rights reserved.# contact %(author-web-site)s -- mailto:%(author-email)s#%(long-license)s"""%(distname)s specific hooks and operations"""