[hamster-applet] check also for blanks



commit 0963e8dd75d3e76d045e7295c7aee53193ac462c
Author: Toms Bauģis <toms baugis gmail com>
Date:   Thu Nov 19 01:38:18 2009 +0000

    check also for blanks

 hamster/stuff.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/hamster/stuff.py b/hamster/stuff.py
index fbd60bf..428c1db 100644
--- a/hamster/stuff.py
+++ b/hamster/stuff.py
@@ -217,7 +217,7 @@ def escape_pango(text):
     return text
 
 def figure_time(str_time):
-    if not str_time:
+    if not str_time or not str_time.strip():
         return None
     
     # strip everything non-numeric and consider hours to be first number



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]