closeio/flask-mongorest

Python 3 incompatible syntax on views.py

Closed this issue · 4 comments

There are a couple of except Exception, e: in views.py and that syntax is incompatible with python 3. A simple change to except Exception as e: should solve the issue.

Thanks Marco, except Exception as e sounds good. Care to send a PR?

ok, sending it soon :)

2016-07-19 19:33 GMT-03:00 Stefan Wójcik notifications@github.com:

Thanks Marco, except Exception as e sounds good. Care to send a PR?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#86 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AICX2vb0xBC48m_1XPf08pqPj7hpoXfoks5qXVCegaJpZM4JQPYu
.

Seems like there are many bits of the library incompatible with python 3, and changing the syntax of the exception catching wouldn't be enough.

Thanks for reporting these! I'm closing this in favor of #99