[Cs:s] Custom Admin plugin log gives errors
Posted: Wed Dec 09, 2020 5:24 pm
Hi, my admin plugin log gives weird erros, when custom name use command. When it try make log for admin action, for custom names that have special mark it gives this error
Code: Select all
[SP] Caught an Exception:Traceback (most recent call last):File "../addons/source-python/packages/source-python/commands/auth.py", line 44, in __call__return self.callback(*args)File "../addons/source-python/packages/source-python/menus/queue.py", line 267, in _menuselect_callback_radio_queues[index]._select(choice)File "../addons/source-python/packages/source-python/menus/queue.py", line 126, in _selectnext_menu = active_menu._select(self._index, choice)File "../addons/source-python/packages/source-python/menus/radio.py", line 316, in _selectreturn super()._select(player_index, choice_index)File "../addons/source-python/packages/source-python/menus/radio.py", line 113, in _selectself._player_pages[player_index].options[choice_index])File "../addons/source-python/packages/source-python/menus/base.py", line 126, in _selectreturn self.select_callback(self, player_index, choice_index)File "../addons/source-python/plugins/admin/admin.py", line 1387, in server_menu_callbackforce_round(userid)File "../addons/source-python/plugins/admin/admin.py", line 608, in force_roundlogAction(userid, 'Forced draw')File "../addons/source-python/plugins/admin/admin.py", line 1267, in logAction f = open(_wpath, 'a')UnicodeEncodeError: 'ascii' codec can't encode characters in position 64-73: ordinal not in range(128)