From 15a3bdebec1ea0f071e581ac8482b56bed13e362 Mon Sep 17 00:00:00 2001 From: jantuomi Date: Thu, 14 Jul 2016 15:09:26 +0300 Subject: Fix sys.argv call --- radiodiodibot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiodiodibot.py b/radiodiodibot.py index 00d382a..99a0ef5 100644 --- a/radiodiodibot.py +++ b/radiodiodibot.py @@ -4,7 +4,7 @@ import sys def get_token_from_argv(): try: - return argv[1] + return sys.argv[1] except: print("Please provide the telegram bot token as a command line argument.") sys.exit() -- cgit v1.3