From: Jason Ish Date: Fri, 11 Oct 2019 14:49:34 +0000 (-0600) Subject: version check: small fix - missing import and wording X-Git-Tag: 1.1.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a69b2d4ee18c0f8ba039436f6b8a6afa1b26601;p=thirdparty%2Fsuricata-update.git version check: small fix - missing import and wording - import sys was missing cause sys.exit to throw an exception - if the index does not contain a version, suggest the user run update-sources. --- diff --git a/suricata/update/sources.py b/suricata/update/sources.py index 78b5cbb..1cef09b 100644 --- a/suricata/update/sources.py +++ b/suricata/update/sources.py @@ -16,6 +16,7 @@ from __future__ import print_function +import sys import os import logging import io @@ -134,7 +135,7 @@ class Index: try: return self.index["versions"] except KeyError: - logger.error("Version information not in index") + logger.error("Version information not in index. Please update with suricata-update update-sources.") sys.exit(1) def load_source_index(config):