goa/dbinit.py
changeset 2476 1294a6bdf3bf
parent 2126 a25859917ccc
child 3689 deb13e88e037
equal deleted inserted replaced
2475:b6753521129d 2476:1294a6bdf3bf
    18     except KeyError:
    18     except KeyError:
    19         key = Key.from_path('CWGroup', 'key_' + groupname, parent=None)
    19         key = Key.from_path('CWGroup', 'key_' + groupname, parent=None)
    20         try:
    20         try:
    21             group = Get(key)
    21             group = Get(key)
    22         except datastore_errors.EntityNotFoundError:
    22         except datastore_errors.EntityNotFoundError:
    23             raise Exception('can\'t find required group %s, is your application '
    23             raise Exception('can\'t find required group %s, is your instance '
    24                             'correctly initialized (eg did you run the '
    24                             'correctly initialized (eg did you run the '
    25                             'initialization script) ?' % groupname)
    25                             'initialization script) ?' % groupname)
    26         _GROUP_CACHE[groupname] = group
    26         _GROUP_CACHE[groupname] = group
    27         return group
    27         return group
    28 
    28