试图弄清楚如何处理错误:
quandl.errors.quandl_error.NotFoundError: (Status 404) (Quandl Error QECx02) You have submitted an incorrect Quandl code. Please check your Quandl codes and try again.
这是我想要异常的代码片段:
source = Q.get(query_site, authtoken=secret)
df = df.join(source, how='outer')
break
如果我得到错误,我想退出。我的except
陈述会怎样?我试过NotFoundError
了,但似乎没有用。