I got ImportError: cannot import name Empty when I tried to import a subclass of Exception. Here is the code:
file name: exceptions.py
class Empty(Exception):
  """Error attempting to access an element from an empty container."""
  pass
file name: main.py
from exceptions import Empty
How can I fix this?
 
    