josegonzalez/python-github-backup — pull request #2 by johnyf (2014-09-13 21:25:45+00:00)
Title: add authorization to header only if specified by user

Otherwise `'basic ' + auth` raises a `TypeError` because in `get_auth` the default value of `auth` is `None`. Since authentication credentials are optional arguments and the help message does not mention that at least one of them is required, this appears to be the intended behavior, taking into consideration also [this warning message](https://github.com/josegonzalez/python-github-backup/blob/5b23fa6491494b53ce8d53d2ea8d0da010c2ea3f/bin/github-backup#L140). Also, since it does work w/o credentials, it is nice to provide this option for any user that doesn't want to provide a password or token.