oss-slu / Mouser

GNU General Public License v3.0
1 stars 7 forks source link

Add warning window to possible errors in serial port setting #205

Open stanleyyang2001 opened 6 months ago

stanleyyang2001 commented 6 months ago

Describe the feature that you would like added There's many places in serial_port_setting.py where error catching is performed in the following format: try: ... except Exception as e: .... Right not there's only print(e) under except Exception. To improve the visibility of the application, a warning window is needed so the user could understand what part of the application went wrong and the detail of the error.

Tasks that need to completed for this feature Create warning window for all section of the file where this format exists.

Additional context There's two try except statement, one is under def init, the other is under the function set_preference

If there's a need, later issues can follow this exact format for other files as well.