Skip to content

Admin - Stats button returns attributeError #33

@rapcmia

Description

@rapcmia

Describe the bug

When testing admin on condor, observed that stats button does not do anything when clicked and return error on condor logs

Image
2026-02-20 13:50:39,477 - __main__ - ERROR - Exception while handling an update:
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/telegram/ext/_application.py", line 1315, in process_update
    await coroutine
  File "/usr/local/lib/python3.12/site-packages/telegram/ext/_handlers/basehandler.py", line 159, in handle_update
    return await self.callback(update, context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/utils/auth.py", line 126, in wrapped
    return await func(update, context, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/handlers/admin/__init__.py", line 109, in admin_callback_handler
    await _show_stats(query, context)
  File "/app/handlers/admin/__init__.py", line 490, in _show_stats
    f"  Entries: {len(cm.cm.get('audit_log', []))}\n"
                      ^^^^^
AttributeError: 'ConfigManager' object has no attribute 'cm'

Steps to reproduce

  1. Setup condor + hummingbot-api
  2. Go to admin or /admin
  3. Click stats

Attach required files

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions