[kupfer] picasa: Skip empty fetching albums for usernames
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] picasa: Skip empty fetching albums for usernames
- Date: Tue, 6 Apr 2010 18:22:34 +0000 (UTC)
commit 4b0bcaea3a0414fb9c2780bb88be4c3be379bffa
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Apr 6 15:47:36 2010 +0200
picasa: Skip empty fetching albums for usernames
If show users is empty (""), then we tried to fetch an empty username.
kupfer/plugin/google_picasa/__init__.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/google_picasa/__init__.py b/kupfer/plugin/google_picasa/__init__.py
index acd2ab8..ae2b473 100644
--- a/kupfer/plugin/google_picasa/__init__.py
+++ b/kupfer/plugin/google_picasa/__init__.py
@@ -191,7 +191,9 @@ class PicasaDataCache():
pusers = []
try:
user = __kupfer_settings__['userpass'].username
- user_names = (__kupfer_settings__['showusers'] or '').split(',')
+ show_users = (__kupfer_settings__['showusers'] or '')
+ user_names = [U.strip() for U in show_users.split(',') if U.strip()]
+
if user not in user_names:
user_names.append(user)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]