Enclose in parentheses:

except (IDontLIkeYouException, YouAreBeingMeanException) as e:
    pass

Separating the exception from the variable with a comma will still work in Python 2.6 and 2.7, but is now deprecated; now you should be using as.

相关文章:

  • 2021-06-29
  • 2021-11-21
  • 2021-05-27
  • 2022-12-23
  • 2021-06-12
  • 2021-09-13
猜你喜欢
  • 2022-02-26
  • 2021-10-19
  • 2021-12-10
  • 2021-06-26
  • 2021-11-11
  • 2022-03-08
  • 2022-12-23
相关资源
相似解决方案