Skip to content

Commit

Permalink
upgrade_client: Reformat file with black
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Jan 31, 2025
1 parent ad59202 commit b3edd6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions npbackup/upgrade_client/upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,7 @@ def auto_upgrader(
return False
try:
first_directory = os.listdir(upgrade_dist)[0]
upgrade_dist = os.path.join(
upgrade_dist, first_directory
)
upgrade_dist = os.path.join(upgrade_dist, first_directory)
logger.debug(f"Upgrade dist dir: {upgrade_dist}")
except Exception as exc:
logger.critical(
Expand Down Expand Up @@ -440,7 +438,9 @@ def auto_upgrader(
log_file,
)
if _NPBACKUP_ALLOW_AUTOUPGRADE_DEBUG:
logger.info("Running in autoupgrade debug mode: We won't actually run it in debug mode. Please run it manually")
logger.info(
"Running in autoupgrade debug mode: We won't actually run it in debug mode. Please run it manually"
)
logger.info(cmd)
else:
logger.debug(cmd)
Expand Down

0 comments on commit b3edd6b

Please # to comment.