Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5db218

Browse files
committed
settingsITC PID errorhandling x2
1 parent 120539a commit d5db218

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mainWindow.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,11 @@ def settings_temp_ITC_PIDFile_send(self):
335335
settings.setValue('ITC_PIDFile', self.window_settings.temp_ITC_PIDFile)
336336
del settings
337337

338-
with open(self.window_settings.temp_ITC_PIDFile) as f:
339-
self.window_settings.textConfShow.setText(f.read())
338+
try:
339+
with open(self.window_settings.temp_ITC_PIDFile) as f:
340+
self.window_settings.textConfShow.setText(f.read())
341+
except OSError as e:
342+
self.show_error_general(f'mainthread: settings PIDFile: OSError {e}')
340343

341344
# ------- plotting
342345
def connectdb(self, dbname):

0 commit comments

Comments
 (0)