def run_command(cmd, verbose=False):
    if verbose:
        print cmd
        
    result = os.system(cmd)

    if result != 0:
        raise Exception((cmd, result) % 'command "%s" failed with code %d.')
dataset/ETHPy150Open landsat-pds/landsat_ingestor/ingestor/splitter.py/run_command/swapped operands of `%`