Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

indexing_exception.py 392B

123456789101112131415
  1. """
  2. Check for indexing exceptions.
  3. """
  4. # pylint: disable=import-error, no-absolute-import
  5. from unknown import ExtensionException
  6. __revision__ = 0
  7. class SubException(IndexError):
  8. """ empty """
  9. _ = IndexError("test")[0] # [indexing-exception]
  10. _ = ZeroDivisionError("error")[0] # [indexing-exception]
  11. _ = ExtensionException("error")[0]
  12. _ = SubException("error")[1] # [indexing-exception]