1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix cv bug

This commit is contained in:
Steffo 2020-01-17 18:29:25 +01:00
parent 53824e990c
commit c839ea2aca

View file

@ -77,7 +77,8 @@ class CvCommand(Command):
activity += f" | 📺 {mact['name']}" activity += f" | 📺 {mact['name']}"
# Custom Status # Custom Status
elif mact["type"] == 4: elif mact["type"] == 4:
activity += f" | ❓ {mact['state']}" if "state" in activity:
activity += f" | ❓ {mact['state']}"
else: else:
raise ExternalError(f"Unknown Discord activity type: {mact['type']}") raise ExternalError(f"Unknown Discord activity type: {mact['type']}")