mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
I'm not too sure what I was doing with awfully implemented exception handling in helpsys models.py. Yank that nasty stuff.
This commit is contained in:
parent
0169c52442
commit
5d7fcb67dd
1 changed files with 2 additions and 8 deletions
|
|
@ -27,19 +27,13 @@ class HelpEntry(models.Model):
|
|||
"""
|
||||
Returns the topic's name.
|
||||
"""
|
||||
try:
|
||||
return self.topicname
|
||||
except:
|
||||
return None
|
||||
return self.topicname
|
||||
|
||||
def get_entrytext_ingame(self):
|
||||
"""
|
||||
Gets the entry text for in-game viewing.
|
||||
"""
|
||||
try:
|
||||
return ansi.parse_ansi(self.entrytext)
|
||||
except:
|
||||
return None
|
||||
return ansi.parse_ansi(self.entrytext)
|
||||
|
||||
class HelpEntryAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'topicname', 'staff_only')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue