Skip to content

Commit

Permalink
fix: remove empty variables and improve JSON compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Mar 7, 2025
1 parent 56eb72d commit 03c1f47
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions misp_modules/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

# Global variables
MODULES_HANDLERS = {}
HELPERS_HANDLERS = {}
LOGGER = logging.getLogger("misp-modules")

# Module that, if present, guarantees that the extra 'all' has been installed
Expand Down Expand Up @@ -129,8 +128,8 @@ class HealthCheck(tornado.web.RequestHandler):
"""HealthCheck handler."""

def get(self):
LOGGER.debug("Healthcheck request")
self.write(b'{"status": true}')
LOGGER.debug("HealthCheck request")
self.write(orjson.dumps({"status": True}))


class ListModules(tornado.web.RequestHandler):
Expand Down Expand Up @@ -198,7 +197,6 @@ def post(self):

def main():
"""Init function."""
global HELPERS_HANDLERS
global MODULES_HANDLERS

signal.signal(signal.SIGINT, handle_signal)
Expand Down

0 comments on commit 03c1f47

Please sign in to comment.