Parcourir la source

[2676] Don't crash on RPCError

Michal 'vorner' Vaner il y a 12 ans
Parent
commit
75862a73a3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/bin/stats/stats.py.in

+ 1 - 1
src/bin/stats/stats.py.in

@@ -260,7 +260,7 @@ class Stats:
         except isc.config.RPCError:
             # TODO: Is it OK to just pass? As part of refactoring, preserving
             # the original behaviour.
-            pass
+            value = None
         if type(value) is list:
             # NOTE: For example, the "show_processes" command
             # of Init is assumed to return the response in this