File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
installation_and_upgrade/ibex_install_utils Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ def run_instrument_deploy_pre_stop(self) -> None:
271271 bytes (central_inst_info , encoding = "utf8" )
272272 ).decode ("utf-8" )
273273 central_inst_info = json .loads (central_inst_info )
274- except :
274+ except Exception :
275275 central_inst_info = {}
276276
277277 central_specific_inst_info = None
@@ -305,7 +305,7 @@ def run_upgrade_mysql(self) -> None:
305305 """
306306 self ._mysql_tasks .install_mysql (force = False )
307307
308- def run_update_calibrations_repository (self ):
308+ def run_update_calibrations_repository (self ) -> None :
309309 """update_calibrations_repository"""
310310 self ._server_tasks .update_calibrations_repository ()
311311
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ def truncate_database(self) -> None:
9494 try :
9595 mysql_bin_dir = self ._get_mysql_dir ()
9696
97- sql_command = "truncate table msg_log.message;" +
97+ sql_command = "truncate table msg_log.message;" \
9898 "truncate table archive.sample;truncate table alarm.pv"
9999
100100 RunProcess (
@@ -132,7 +132,7 @@ def _configure_mysql(self) -> None:
132132 admin_commands .add_command ("sc" , "start MYSQL80" , expected_return_val = None )
133133 admin_commands .run_all ()
134134
135- def _remove_old_versions_of_mysql8 (self , clean_install ) -> None :
135+ def _remove_old_versions_of_mysql8 (self , clean_install : bool ) -> None :
136136 if clean_install :
137137 self .prompt .prompt_and_raise_if_not_yes (
138138 "Warning: this will erase all data held in the MySQL database. "
You can’t perform that action at this time.
0 commit comments