Why “if file is not None” still executes even if type(file) is NoneType
I am trying to implement error handling with my python project using customtkinter.
I wrote function that opens dialog window for selecting file to import:
I am trying to implement error handling with my python project using customtkinter.
I wrote function that opens dialog window for selecting file to import: