Skip to content

Commit

Permalink
print harbor error while respecting linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-david committed Mar 6, 2024
1 parent 21c80dc commit 24ad297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/harbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ async def sync_robot_accounts(target_robots: [Robot]):
await client.create_robot(robot=target_robot)
except Conflict as e:
print(
f' => ERROR: "{robot_name_prefix + target_robot.name}", Harbor Conflict Error: {e}'
f''' => ERROR: "{robot_name_prefix + target_robot.name}"
Harbor Conflict Error: {e}'''
)
except BadRequest as e:
print(f'Bad request permission: {e}')
Expand Down

0 comments on commit 24ad297

Please sign in to comment.