Closed mizi closed 7 years ago
The group is supposed to contain the notification key such that people can subscribe to only specific channels (notifications).
That should be fine, however there could be an issue with your notification key - could we somehow allow notification keys that don't conform to only alphanumerics, hyphens, or periods.
?
The problem is the second Group(...).discard function: Group(settings.NOTIFICATION_CHANNEL).discard(message.reply_channel), because it uses non formated settings.NOTIFICATION_CHANNEL (value is: "nyt_all-{notification_key:s}") which contains non allowed characters. I also think it was left there by mistake
I totally missed the point in this issue, thanks @ztomaz :)
Thanks @benjaoming, thanks @ztomaz :)
The last in ws_disconnect causes the following exception:
because settings.NOTIFICATION_CHANNEL is a format string.
I think this line isn't needed and was left there by mistake in 251bfc0