Skip to content

Commit

Permalink
Simplification thanks to Kwpolska.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 30, 2015
1 parent 5a7a9e8 commit 99cb381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/command/import_wordpress.py
Expand Up @@ -139,7 +139,7 @@ def _execute(self, options={}, args=[]):
self.no_downloads = options.get('no_downloads', False)

self.auth = None
if options.get('download_auth', None) is not None:
if options.get('download_auth') is not None:
username_password = options.get('download_auth')
self.auth = tuple(username_password.split(':', 1))
if len(self.auth) < 2:
Expand Down

0 comments on commit 99cb381

Please sign in to comment.