Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running CreepyMain.py generates syntax error. #70

Open
j-grim opened this issue Jan 27, 2018 · 1 comment
Open

Running CreepyMain.py generates syntax error. #70

j-grim opened this issue Jan 27, 2018 · 1 comment

Comments

@j-grim
Copy link

j-grim commented Jan 27, 2018

user@userspace:~/toolz/creepy/creepy$ python CreepyMain.py
File "CreepyMain.py", line 217
except Exception, err:
^
SyntaxError: invalid syntax

This points to a try/except inside of checkForUpdatedVersion()

except Exception, err:
if type(err) == 'string':
mes = err
else:
mes = err.message
self.showWarning(self.trUtf8('Error checking for updates'), mes)

Looks like the exception syntax isnt supported in py3.

The fix is:

except Exception as err:

Going to see if I can spruce this up to run in py3.
Might be worth it to make people aware on the front page of this project that it only supports py2.

@j-grim
Copy link
Author

j-grim commented Jan 27, 2018

Realizing this is also using urllib2, instead of urllib.request and undoubtedly a bunch of other things. I'm just going to run in in py2.x, and if anyone is interested in me updating the codebase to compatible with py3, I'll fork it and get it going.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant