- 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.
from __future__ import print_function
+import sys
import os
import logging
import io
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):