Jul-31-2018, 07:00 PM
If you are expecting the OSError from the winreg call:
i = 0 while i < 5: try: list = winreg.EnumKey(<key>, i) except OSError: break i += 1Although, that's really a for loop:
for i in range(5): try: list = winreg.EnumKey(<key>, i) except OSError: break
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures