aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-09-29 01:02:33 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-09-29 01:02:33 +0200
commit277fe78fa7cfcfeca183c0fe4140fcb84c29a0ae (patch)
tree4a1270a32764f1a4c7447efd4612dd280d06ee61
parentb69a3f96455f3333bc70b67f828cda784fc4ac99 (diff)
Handle empty lines in livestreamerrc.
-rw-r--r--src/livestreamer/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/livestreamer/utils.py b/src/livestreamer/utils.py
index c57d68d..8f6e58e 100644
--- a/src/livestreamer/utils.py
+++ b/src/livestreamer/utils.py
@@ -17,6 +17,9 @@ RequestsConfig = { "danger_mode": True }
class ArgumentParser(argparse.ArgumentParser):
def convert_arg_line_to_args(self, line):
+ if len(line) == 0:
+ return
+
if line[0] == "#":
return