Browse Source

corrected short response error code

pull/2836/head
Daniel Gibbs 5 years ago
committed by GitHub
parent
commit
7ef53a5bb2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lgsm/functions/query_gsquery.py

4
lgsm/functions/query_gsquery.py

@ -84,8 +84,8 @@ class gsquery:
# Response.
if self.response is None:
self.fatal_error('No response', 3)
if len(self.response) < 2:
sys.exit('Short response.', 5)
if len(self.response) < 5:
sys.exit('Short response.', 3)
else:
self.exit_success(str(self.response))

Loading…
Cancel
Save