Browse Source
Add function decorators to 2 methods
Change methods not using their bound instance to static methods
pull/3582/head
Adithya Hegde
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
lgsm/functions/query_gsquery.py
|
|
@ -59,10 +59,12 @@ class gsquery: |
|
|
|
self.response = None |
|
|
|
self.sanity_checks() |
|
|
|
|
|
|
|
@staticmethod |
|
|
|
def fatal_error(self, error_message, error_code=1): |
|
|
|
sys.stderr.write('ERROR: ' + str(error_message) + '\n') |
|
|
|
sys.exit(error_code) |
|
|
|
|
|
|
|
@staticmethod |
|
|
|
def exit_success(self, success_message=''): |
|
|
|
sys.stdout.write('OK: ' + str(success_message) + '\n') |
|
|
|
sys.exit(0) |
|
|
|