def dump_key(self, crash_id, name):
    if (name in (None, '', 'upload_file_minidump')):
        name = 'dump'
    return 'v1/{name}/{crashid}'.format(name=name, crashid=crash_id)
def dump_key(self, crash_id, name):
    if (name in (None, , 'upload_file_minidump')):
        name = 'dump'
    return 'v1/{name}/{crashid}'.format(name=name, crashid=crash_id)