Closed aveao closed 6 years ago
Due to the change on https://github.com/channelcat/sanic/commit/334649dfd4e9b16cbcadcc6264ac9dee6ab7baf3#diff-bd84a6e523017a7f3d6bd72ee689dce2L42, sanic-cors is broken.
The fix is as simple as try-excepting the imports so that the right thing can be imported, which is exactly what this PR does.
All credit of this PR goes to @lnmds, as she was the one to write the fix. I'm just submitting this on her behalf as she's busy.
Thanks for this @aveao!
Thanks. Merged. I will probably make a release with this change in the next few days.
Due to the change on https://github.com/channelcat/sanic/commit/334649dfd4e9b16cbcadcc6264ac9dee6ab7baf3#diff-bd84a6e523017a7f3d6bd72ee689dce2L42, sanic-cors is broken.
The fix is as simple as try-excepting the imports so that the right thing can be imported, which is exactly what this PR does.
All credit of this PR goes to @lnmds, as she was the one to write the fix. I'm just submitting this on her behalf as she's busy.