diff libervia/pages/files/list/page_meta.py @ 1421:e065c8886b81

pages (files/list): set empty affiliations when they can't be retrieved
author Goffi <goffi@goffi.org>
date Sat, 01 May 2021 19:04:25 +0200
parents 6fc41f000d24
children ce879da7fcf7
line wrap: on
line diff
--- a/libervia/pages/files/list/page_meta.py	Sat May 01 18:50:04 2021 +0200
+++ b/libervia/pages/files/list/page_meta.py	Sat May 01 19:04:25 2021 +0200
@@ -125,6 +125,8 @@
             affiliations = {
                 session_data.jid.userhost(): "owner"
             }
+        if e.condition == "service-unavailable":
+            affiliations = {}
         else:
             raise e