Browse Source

Only set the attribute if it isn't None.

pull/572/head
Rapptz 8 years ago
parent
commit
6b063deda9
  1. 4
      discord/audit_logs.py

4
discord/audit_logs.py

@ -129,7 +129,9 @@ class AuditLogChanges:
transformer = self.TRANSFORMERS.get(attr)
if transformer:
attr, transformer = transformer
key, transformer = transformer
if key:
attr = key
try:
before = elem['old_value']

Loading…
Cancel
Save