✘UnboundLocalError: local variable 'sortkey' referenced before assignment

Gary E. Miller gem at rellim.com
Thu Dec 12 20:58:17 UTC 2019

Yo All!

I think this has already been reported, with git head:

# ntpmon
Traceback (most recent call last):
  File "/usr/local/bin/ntpmon", line 352, in <module>
    span = session.mrulist(variables={'recent': limit})
  File "/usr/local/lib/python3.8/site-packages/ntp/packet.py", line 1402, in mrulist
    sorter, sortkey, frags = parse_mru_variables(variables)
  File "/usr/local/lib/python3.8/site-packages/ntp/packet.py", line 1573, in parse_mru_variables
    return sorter, sortkey, frags
UnboundLocalError: local variable 'sortkey' referenced before assignment

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20191212/173cff23/attachment.bin>

More information about the devel mailing list