diff options
Diffstat (limited to 'ogcli')
-rwxr-xr-x | ogcli | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10,6 +10,7 @@ from inspect import ismethod, getmembers from cli.cli import OgCLI +import signal import argparse import json import sys @@ -19,6 +20,7 @@ OG_CLI_CFG_PATH = "/opt/opengnsys/etc/ogcli.json" class CLI(): def __init__(self): + signal.signal(signal.SIGPIPE, signal.SIG_IGN) try: with open(OG_CLI_CFG_PATH, 'r') as json_file: self.cfg = json.load(json_file) |