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.

bad_except_order.py 781B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # pylint: disable=missing-docstring, bare-except, broad-except
  2. __revision__ = 1
  3. try:
  4. __revision__ += 1
  5. except Exception:
  6. __revision__ = 0
  7. except TypeError: # [bad-except-order]
  8. __revision__ = 0
  9. try:
  10. __revision__ += 1
  11. except LookupError:
  12. __revision__ = 0
  13. except IndexError: # [bad-except-order]
  14. __revision__ = 0
  15. try:
  16. __revision__ += 1
  17. except (LookupError, NameError):
  18. __revision__ = 0
  19. except (IndexError, UnboundLocalError): # [bad-except-order, bad-except-order]
  20. __revision__ = 0
  21. try: # [bad-except-order]
  22. __revision__ += 1
  23. except:
  24. pass
  25. except Exception:
  26. pass
  27. try:
  28. __revision__ += 1
  29. except TypeError:
  30. __revision__ = 0
  31. except:
  32. __revision__ = 0
  33. try:
  34. __revision__ += 1
  35. except Exception:
  36. pass
  37. except:
  38. pass