Como aceitar o invalidfileException no python

from tkinter import messagebox
from tkinter import filedialog

from openpyxl.utils.exceptions import InvalidFileException
...

    def browseXLL(self,event):
        try:
            file = filedialog.askopenfilename()
        except InvalidFileException:

            self.window.destroy()
            self.__init__()
Handsome Hedgehog