Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions atcom/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import serial
import click
import sys
import os
import yaml

from .__version__ import __version__
Expand Down Expand Up @@ -231,8 +230,8 @@ def handler(port, baudrate, timeout, verbose, rts_cts, dsr_dtr, config, at_comma
response = at.send_at_comm(at_command, configs["timeout"])
status_code = 0

if type(response) == dict:
if response["find"] == False:
if isinstance(response, dict):
if response["find"] is False:
status_code = 1
logger.info("Couldn't find '{}' in response, exit status code set to 1".format(find))

Expand Down