[PR #377] [MERGED] add ugly workaround for crash in django-admin users --stale-check #478

Closed
opened 2026-02-26 10:31:39 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nsupdate-info/nsupdate.info/pull/377
Author: @ThomasWaldmann
Created: 10/14/2018
Status: Merged
Merged: 10/14/2018
Merged by: @ThomasWaldmann

Base: masterHead: fix-crash


📝 Commits (1)

  • f4e320a add ugly workaround for crash in django-admin users --stale-check

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 nsupdate/management/commands/users.py (+4 -1)

📄 Description

i tried repr(user), but somehow this did not help.

Traceback (most recent call last):
  File "/srv/nsupdate.info/env/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/srv/nsupdate.info/repo/nsupdate/management/commands/users.py", line 85, in handle
    self.stdout.write(log_msg)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 110, in write
    self._out.write(force_str(style_func(msg)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nsupdate-info/nsupdate.info/pull/377 **Author:** [@ThomasWaldmann](https://github.com/ThomasWaldmann) **Created:** 10/14/2018 **Status:** ✅ Merged **Merged:** 10/14/2018 **Merged by:** [@ThomasWaldmann](https://github.com/ThomasWaldmann) **Base:** `master` ← **Head:** `fix-crash` --- ### 📝 Commits (1) - [`f4e320a`](https://github.com/nsupdate-info/nsupdate.info/commit/f4e320aacebe917a4c212c670d2f82784c0add0d) add ugly workaround for crash in django-admin users --stale-check ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `nsupdate/management/commands/users.py` (+4 -1) </details> ### 📄 Description i tried repr(user), but somehow this did not help. ``` Traceback (most recent call last): File "/srv/nsupdate.info/env/bin/django-admin.py", line 5, in <module> management.execute_from_command_line() File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/srv/nsupdate.info/repo/nsupdate/management/commands/users.py", line 85, in handle self.stdout.write(log_msg) File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 110, in write self._out.write(force_str(style_func(msg))) UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 10:31:39 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#478
No description provided.