def get_sq_ext(filename):
    try:
        return filename[filename.rindex('~')+1:]
    except ValueError:
        return ''
Gets the squadron extension from filename.
dataset/ETHPy150Open gosquadron/squadron/squadron/template.py/get_sq_ext