尝试找出如何处理错误:
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,但它似乎不起作用。
https://stackoverflow.com/questions/38149104
复制相似问题