[Git][NTPsec/ntpsec][master] Fix bare tag handling in pyntpq to refer to the current tag
    Eric S. Raymond 
    gitlab at mg.gitlab.com
       
    Wed Oct 26 05:01:09 UTC 2016
    
    
  
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
6d22f121 by Matt Selsky at 2016-10-26T00:28:02-04:00
Fix bare tag handling in pyntpq to refer to the current tag
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -631,9 +631,9 @@ class Mode6Session:
                             if val[0] == '"' and val[-1] == '"':
                                 val = val[1:-1]
                     items.append((var, val))
-                except:
+                except ValueError:
                     # Yes, ntpd really does emit bare tags for empty
                     # string-valued variables.
-                    items.append((var, ""))
+                    items.append((pair, ""))
         return collections.OrderedDict(items)
 # end
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6d22f121a9bb635e209e27c13de1eca094b8549f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161026/87261288/attachment.html>
    
    
More information about the vc
mailing list