Skip to content

Commit

Permalink
Fix long line that failed the flake8 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pieqq committed Sep 18, 2024
1 parent fc7c830 commit d8b1d0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions providers/base/bin/wifi_nmcli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ def wait_for_connected(interface, essid):
if state.startswith("100") and ssid == essid:
print("Reached connected state with ESSID: {}".format(essid))
elif ssid != essid:
error_msg = "ERROR: did not reach connected state with ESSID: {}\nESSID mismatch:\n Excepted:{}\n Actually:{}".format(
essid, ssid, essid
)
error_msg = (
"ERROR: did not reach connected state with ESSID: {}\n"
"ESSID mismatch:\n Excepted:{}\n Actually:{}"
).format(essid, ssid, essid)
raise SystemExit(error_msg)
elif not state.startswith("100"):
error_msg = "State is not connected: {}".format(state)
Expand Down

0 comments on commit d8b1d0f

Please sign in to comment.