From 53bb3dcacfe5957ec04538b0f56dcdbde7c50ba8 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 13 May 2023 21:19:40 -0400 Subject: [PATCH] Fixed errors when trying to set a device name from offline mode Former-commit-id: f5d58f8d99fbef87cb0c44314595a4d2b7597538 Former-commit-id: 210d6f3fbc2672f53bfd438d941e0404de362d57 --- lib/stweak.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/stweak.py b/lib/stweak.py index 920b579..6ad84b2 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -243,6 +243,8 @@ def global_menu(_post_setup): elif _choice == 2: ssh_config() elif _choice == 3: + if not sshyp_data.has_section('SSHYNC'): + ssh_config() dev_id_config(sshyp_data.get('SSHYNC', 'ip'), sshyp_data.get('SSHYNC', 'user'), sshyp_data.get('SSHYNC', 'port')) elif _choice == 4: