mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 09:47:36 +02:00
chore: linting errors
This commit is contained in:
parent
42e9cf6378
commit
7fbc75bea9
@ -87,6 +87,7 @@ class ConnectPanel(Gtk.Frame):
|
||||
add_class(self.entry, self.classname)
|
||||
|
||||
def _on_text_changed(self, entry: Gtk.Entry) -> None:
|
||||
# TODO: on submission, strip whitespace and newlines
|
||||
text = entry.get_text()
|
||||
if len(text) < 1:
|
||||
self.conn_server.set_sensitive(False)
|
||||
@ -96,7 +97,7 @@ class ConnectPanel(Gtk.Frame):
|
||||
try:
|
||||
validate_ip(text)
|
||||
self.mark_valid()
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
if text.isdigit():
|
||||
self.mark_valid()
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user