From 891384350c6f5feb2311eb820d0c1bc953f98376 Mon Sep 17 00:00:00 2001 From: milaq Date: Mon, 21 Jan 2019 01:57:50 +0100 Subject: [PATCH] allow help call w/o stations.yml --- ycast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ycast.py b/ycast.py index ed37b73..dff48d3 100755 --- a/ycast.py +++ b/ycast.py @@ -85,11 +85,11 @@ class YCastServer(BaseHTTPRequestHandler): return item -get_stations() parser = argparse.ArgumentParser(description='vTuner API emulation') parser.add_argument('-l', action='store', dest='address', help='Listen address', default='0.0.0.0') parser.add_argument('-p', action='store', dest='port', type=int, help='Listen port', default=80) arguments = parser.parse_args() +get_stations() try: server = HTTPServer((arguments.address, arguments.port), YCastServer) except PermissionError: