GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.56k stars 203 forks source link

fix: UnboundLocalError: local variable 'local_server' referenced befo… #431

Open rasa opened 1 year ago

rasa commented 1 year ago

…re assignment

In Oct. 2022 gyb worked fine on a Windows 10 system. Today I got

UnboundLocalError: local variable 'local_server' referenced before assignment

This PR fixes the issue. Surprisingly, it took 840 ports to find one that would work:

...
839: 127.0.0.1:8918: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
840: 127.0.0.1:8919: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Go to the following link in your browser:

        https://gyb-shortn.jaylee.us/example
rasa commented 10 months ago

This is still an issue with 1.74. Perhaps it's just my machine, but please consider accepting this PR, as it can't hurt, and can only help others like me. Thanks.