Commits

Ernesto Menéndez  committed e3af956

corregi un pequenio error que levantaba una excepcion cada vez que se usaba la interface grafica

  • Participants
  • Parent commits 4f31970

Comments (0)

Files changed (1)

File nxweb/utils/ws/__init__.py

     for view_intr in introspector.related(routes):
         rms = view_intr.get('request_methods')
         accept = view_intr.get('accept')
-        for rm in rms:
-            if views_info.get(rm) is None:
-                views_info[rm] = set()
-            if accept is not None:
-                views_info[rm].add(accept)
+        if rms:
+            for rm in rms:
+                if views_info.get(rm) is None:
+                    views_info[rm] = set()
+                if accept is not None:
+                    views_info[rm].add(accept)
 
     if req.method not in views_info:
         resp = HTTPMethodNotAllowed()