Skip to content

Commit

Permalink
Only print stack traces for admins. Fixes mautrix#392
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir authored and olmari committed Feb 28, 2020
1 parent 845eb92 commit 1ab6399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mautrix_telegram/commands/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def __init__(self, processor: 'CommandProcessor', room_id: RoomID, event_id: Eve
self.config = processor.config
self.public_website = processor.public_website

@property
def print_error_traceback(self) -> bool:
return self.sender.is_admin

async def get_help_key(self) -> HelpCacheKey:
return HelpCacheKey(self.is_management, self.is_portal, self.sender.puppet_whitelisted,
self.sender.matrix_puppet_whitelisted, self.sender.is_admin,
Expand Down

0 comments on commit 1ab6399

Please sign in to comment.