diff libervia/server/pages.py @ 1378:e3e303a30a74

pages (tickets): renamed "tickets" to "lists": "lists" is more generic, and tickets is actually a specific kind of list. /!\ "tickets_trackers_json" option has been renamed to "lists_directory_json".
author Goffi <goffi@goffi.org>
date Thu, 28 Jan 2021 18:51:44 +0100
parents 1b94a5ab155f
children df79874947d7
line wrap: on
line diff
--- a/libervia/server/pages.py	Fri Dec 11 17:35:06 2020 +0100
+++ b/libervia/server/pages.py	Thu Jan 28 18:51:44 2021 +0100
@@ -726,7 +726,9 @@
                 continue
             if child_name == subpage_name:
                 return path.decode('utf-8'), child
-        raise exceptions.NotFound(_("requested sub page has not been found"))
+        raise exceptions.NotFound(
+            _("requested sub page has not been found ({subpage_name})").format(
+            subpage_name=subpage_name))
 
     def getSubPageURL(self, request, page_name, *args):
         """retrieve a page in direct children and build its URL according to request
@@ -1786,7 +1788,11 @@
                             log.debug(f"using URI cache for {self}")
                             cache_url.use(request)
                     else:
-                        await asDeferred(self.parse_url, self, request)
+                        try:
+                            await asDeferred(self.parse_url, self, request)
+                        except Exception as e:
+                            __import__('pudb').set_trace()
+                            print(e)
 
                 self._subpagesHandler(request)