Python: Make a if statement to do something when a certain error is raised?
<p>I am making a connect4 game on python, and when a column is full, this error is raised when a player puts a piece in the full column. How do I make a if statement to say that if this error is raised, print("Make a valid move?")</p>

<pre><code>class ConnectFourGameOverError(Exception):
    '''Raised whenever an attempt is made to make a move after the game is
    already over'''
    pass
</code></pre>
