aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjantuomi <jans.tuomi@gmail.com>2016-07-14 15:09:26 +0300
committerjantuomi <jans.tuomi@gmail.com>2016-07-14 15:09:26 +0300
commit15a3bdebec1ea0f071e581ac8482b56bed13e362 (patch)
treecc8ec7f1625d9277f066fcd044c06e701c99d519
parent927e0bb68c363e56fda065c8b521014563ea5f6a (diff)
Fix sys.argv call
-rw-r--r--radiodiodibot.py2
1 files changed, 1 insertions, 1 deletions
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()