

@classmethod
def _get_or_create_cdn(cls, cdn_id, create=True):
    try:
        return (CDN.get((CDN.id == cls)), False)
    except DoesNotExist:
        if create:
            return (CDN.create(id=cdn_id), True)
        return (None, None)

dataset/ETHPy150Open CacheBrowser/cachebrowser/cachebrowser/bootstrap.py Bootstrapper._get_or_create_cdn/VarMisuse@34/45 `cdn_id`->`cls`