syabruk / pync

Python wrapper for Mac OS 10.8 Notification Center

Home Page:https://pypi.org/project/pync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work if the message begins with square bracket ("[")

bbbbbbbbba opened this issue · comments

Notifier.notify('[') fails silently. Notifier.notify('.[') works correctly.

commented

@bbbbbbbbba looks like it's problem with terminal-notifier. I think you should create issues here
https://github.com/julienXX/terminal-notifier/issues

commented

@bbbbbbbbba use escape character to fix this problem.

>>> import pync
>>> pync.notify('\[')

I don't think the package should let the user do the escaping, unless the unescaped bracket has a useful and documented function. Is that the case here?

commented

@bbbbbbbbba it's simple wrapper without extra logic, but you're right about that. Can you make PR for this?