]> git.neil.brown.name Git - edlib.git/commitdiff
lib-server: catch errors from Tile:bury
authorNeilBrown <neil@brown.name>
Mon, 30 Oct 2023 04:03:46 +0000 (15:03 +1100)
committerNeilBrown <neil@brown.name>
Mon, 30 Oct 2023 04:04:32 +0000 (15:04 +1100)
When we call Tile:bury, the tile pane might already be read which would
result in an error.  But we don't care, so catch it.

This happens when the client-side is run with "-t".

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
python/lib-server.py

index 9d642095a9ad0e0c04dabe63222793dbea8b2427..c936a76aff8b8a26f238263002f6019316807659 100644 (file)
@@ -43,6 +43,11 @@ the file.
 - [ ] notmuch - capture errors about multiple Subject lines and
       display them better.
 - [ ] switch display-pygtk to use Draw:scale-image
+- [ ] when add address to a query in notmuch, reassess the current
+      query.  Maybe don't reload, but make sure that next reload will
+      used updated query.
+- [ ] get too many Failed:: C-N C-P Up C-R history:C-R A-!
+      Maybe these should return Efalse, not Efail
 
 ### Small
 
@@ -269,6 +274,11 @@ Module features
 - [ ] catch broken-pipe errors when sending to sock
 - [ ] ctrl-z in elc doesn't ask edlib to release the terminal
 - [ ] do we need both .term and .disp?  When are they different?
+- [ ] Catch broken-pipe in all sock.send calls
+- [ ] elc: run edlib in background first if no socket
+- [ ] option to create a new frame
+- [ ] improve protocol
+
 
 ### lib-x11selection-xcb
 
@@ -540,13 +550,6 @@ Module features
 - [ ]  Detect ^M in output and handle it... delete from start of line?
 - [ ] always track time for a run and report it - or at least make it available
 
-###  edlibclient
-- [ ] Catch broken-pipe in all sock.send calls
-- [ ] run edlib directly if no socket
-- [ ] option to create a new frame
-- [ ] more work on server mode:
-- [ ] improve protocol
-
 ### line count
 
 - [ ] Find a way to locate mark faster than walking the whole list
index 11499f6aa2d8152c22e07e917e3aa93472fdb435..d9aa82a952bf677cc094ffc5096d2dbb8467700c 100755 (executable)
@@ -269,7 +269,12 @@ if sys.argv[0] == "":
                 focus.call("doc:notify:doc:done")
                 # FIXME need something better than 'bury'
                 # If it was already visible, it should stay that way
-                focus.call("Tile:bury")
+
+                # tile might already be closed, so catch errors
+                try:
+                    focus.call("Tile:bury")
+                except edlib.commandfailed:
+                    pass
         else:
             # Find and visit a doc waiting to be done
             choice = []