Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Aug 28, 2024
1 parent cc4a8a7 commit d44d5ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions installation_and_upgrade/ibex_install_utils/install_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def run_instrument_deploy_pre_stop(self) -> None:
bytes(central_inst_info, encoding="utf8")
).decode("utf-8")
central_inst_info = json.loads(central_inst_info)
except:
except Exception:
central_inst_info = {}

central_specific_inst_info = None
Expand Down Expand Up @@ -305,7 +305,7 @@ def run_upgrade_mysql(self) -> None:
"""
self._mysql_tasks.install_mysql(force=False)

def run_update_calibrations_repository(self):
def run_update_calibrations_repository(self) -> None:
"""update_calibrations_repository"""
self._server_tasks.update_calibrations_repository()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def truncate_database(self) -> None:
try:
mysql_bin_dir = self._get_mysql_dir()

sql_command = "truncate table msg_log.message;" +
sql_command = "truncate table msg_log.message;"\
"truncate table archive.sample;truncate table alarm.pv"

RunProcess(
Expand Down Expand Up @@ -132,7 +132,7 @@ def _configure_mysql(self) -> None:
admin_commands.add_command("sc", "start MYSQL80", expected_return_val=None)
admin_commands.run_all()

def _remove_old_versions_of_mysql8(self, clean_install) -> None:
def _remove_old_versions_of_mysql8(self, clean_install: bool) -> None:
if clean_install:
self.prompt.prompt_and_raise_if_not_yes(
"Warning: this will erase all data held in the MySQL database. "
Expand Down

0 comments on commit d44d5ab

Please sign in to comment.