#!/usr/bin/env python
# Copyright (c) 2019 Workonline Communications (Pty) Ltd. All rights reserved.
#
# The contents of this file are licensed under the MIT License
# (the "License"); you may not use this file except in compliance with the
# License.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
"""PrefixListAgent EOS SDK Agent."""

from __future__ import print_function

import sys

import eossdk

from prefix_list_agent import start


def main():
    """Run the PrefixListAgent."""
    try:
        # get an instance of the EOS SDK
        sdk = eossdk.Sdk()
    except Exception:
        # return a generic error status on failure
        return 1
    # start the agent
    return start(sdk)


if __name__ == "__main__":
    sys.exit(main())
