Sfoglia il codice sorgente

[desktop] Try to fix check config tests by getting the confvar name the old way

Erick Tryzelaar 10 anni fa
parent
commit
f8ab289c78
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      desktop/core/src/desktop/views.py

+ 1 - 1
desktop/core/src/desktop/views.py

@@ -433,7 +433,7 @@ def _get_config_errors(request, cache=True):
       try:
         for confvar, error in validator(request.user):
           error = {
-            'name': confvar.get_fully_qualifying_key() if isinstance(confvar, BoundConfig) else confvar,
+            'name': confvar if isinstance(confvar, str) else confvar.get_fully_qualifying_key(),
             'message': error,
           }