P1sec / pycrate

A Python library to ease the development of encoders and decoders for various protocols and file formats; contains ASN.1 and CSN.1 compilers.
GNU Lesser General Public License v2.1
385 stars 129 forks source link

Fix reference to undefined time variables. #106

Closed andyvan-trabus closed 4 years ago

andyvan-trabus commented 4 years ago

I fixed "UnboundLocalError: local variable 'Td' referenced before assignment"

p1-bmu commented 4 years ago

Thanks pour submitting, the intention of this code is however little bit different. I patched it with https://github.com/P1sec/pycrate/commit/88ad3e92b6706e815134a53991c0f53a003fe81f.