diff --git a/elite_api b/elite_api index 0654796..588997e 160000 --- a/elite_api +++ b/elite_api @@ -1 +1 @@ -Subproject commit 0654796a1a5d6809041695591971e3f857a9989c +Subproject commit 588997e3127dca13c8899f2ec08c2ff2f19070bc diff --git a/elite_info.py b/elite_info.py index 1fe38fd..a25747f 100755 --- a/elite_info.py +++ b/elite_info.py @@ -11,7 +11,6 @@ flag_parser.add_argument('--dump', action='store_true', help="Dump raw data.") def main(): settings = utils.get_settings() - session = Session() flags = flag_parser.parse_args() companion.login(settings.get('ed_companion', 'username'), settings.get('ed_companion', 'password')) @@ -24,8 +23,7 @@ def main(): print "Commander %s" % data['commander']['name'] print "Credits: %s" % data['commander']['credits'] print "Location: %s" % data['lastSystem']['name'] - - session.close() + if __name__ == "__main__": main()