for line in sys.stdin:
line = line.strip()
uid, profile = line.split('\t')
try:
process(profile)
except:
# do nothing and skip this profile
我希望跳过所有引发异常的配置文件,但是Python会给我以下警告:
IndentationError: expected an indented block
在行号 "# do nothing and skip this profile" 上,我该如何告诉 Python 什么都不做呢?