diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-09-29 01:02:33 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-09-29 01:02:33 +0200 |
commit | 277fe78fa7cfcfeca183c0fe4140fcb84c29a0ae (patch) | |
tree | 4a1270a32764f1a4c7447efd4612dd280d06ee61 | |
parent | b69a3f96455f3333bc70b67f828cda784fc4ac99 (diff) |
Handle empty lines in livestreamerrc.
-rw-r--r-- | src/livestreamer/utils.py | 3 |
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 |