Commit 55f5859d authored by Jason Milhone's avatar Jason Milhone
Browse files

Similar fix to d898427a

Needed to fix a similar issue when opening a config file at the start
with a bad server address
parent d898427a
...@@ -120,7 +120,11 @@ class MyWindow(QtWidgets.QMainWindow): ...@@ -120,7 +120,11 @@ class MyWindow(QtWidgets.QMainWindow):
self.spinBox.setValue(self.shot_number) self.spinBox.setValue(self.shot_number)
self.shot_number_label.setText("Shot Number: {0:d}".format(self.shot_number)) self.shot_number_label.setText("Shot Number: {0:d}".format(self.shot_number))
self.fetch_data(self.shot_number) self.fetch_data(self.shot_number)
# The only way this can happen is the user didn't enter a shot and we
# have failed to get a shot number from the server
self.status.setText("Error Accessing Server")
else: else:
self.shot_number = None self.shot_number = None
self.updateBtn.setDisabled(True) self.updateBtn.setDisabled(True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment