Skip to content

Commit cf30c6d

Browse files
committed
Move several class definitions into try block
The class definitions are now able to be imported from the script. Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 52d9e22 commit cf30c6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/monitor_dbus_signals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,6 @@ def main():
427427
if __name__ == "__main__":
428428
main()
429429

430-
except KeyboardInterrupt:
431-
432430
class Diff: # pylint: disable=too-few-public-methods
433431
"""
434432
Diff between two different managed object results.
@@ -601,6 +599,8 @@ def __init__(self, object_path, interface_name):
601599
def __repr__(self):
602600
return f"MissingInterface({self.object_path!r}, {self.interface_name!r}"
603601

602+
except KeyboardInterrupt:
603+
604604
def _check_props(object_path, ifn, old_props, new_props):
605605
"""
606606
Find differences between two sets of properties.

0 commit comments

Comments
 (0)