Browse files

-

  • Loading branch information...
1 parent 0799676 commit 54eca115a977441fff75c7b8db49a9b8f980fd06 @frutik committed Oct 17, 2011
Showing with 43 additions and 7 deletions.
  1. +43 −7 yaware.py
View
50 yaware.py
@@ -84,15 +84,51 @@ class YawareEvent(SQLObject):
row = GetActiveWindow()
logging.debug(row)
+
+ try:
+ added = row[0]
+ except:
+ added = ''
+
+ try:
+ windowid = row[1]
+ except:
+ windowid = ''
+
+ try:
+ windowhash = row[2]
+ except:
+ windowhash = ''
+
+ try:
+ WM_CLIENT_LEADER = row[3]['WM_CLIENT_LEADER']
+ except:
+ WM_CLIENT_LEADER = ''
+
+ try:
+ WM_NAME = row[3]['WM_NAME']
+ except:
+ WM_NAME = ''
+
+ try:
+ WM_CLASS = row[3]['WM_CLASS']
+ except:
+ WM_CLASS = ''
+
+ try:
+ WM_CLIENT_MACHINE = row[3]['WM_CLIENT_MACHINE']
+ except:
+ WM_CLIENT_MACHINE = ''
+
YawareEvent(
- added = row[0],
- windowid = row[1],
- windowhash = row[2],
- WM_CLIENT_LEADER = row[3]['WM_CLIENT_LEADER'],
- WM_NAME = row[3]['WM_NAME'],
- WM_CLASS = row[3]['WM_CLASS'],
- WM_CLIENT_MACHINE = row[3]['WM_CLIENT_MACHINE'],
+ added = added,
+ windowid = windowid,
+ windowhash = windowhash,
+ WM_CLIENT_LEADER = WM_CLIENT_LEADER,
+ WM_NAME = WM_NAME,
+ WM_CLASS = WM_CLASS,
+ WM_CLIENT_MACHINE = WM_CLIENT_MACHINE
)

0 comments on commit 54eca11

Please sign in to comment.