Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Getting server domain/address/subdomain doesn't work #104

@pythoncat1

Description

@pythoncat1

When trying to access atserver.domain, atserver.subdomain, or atserver.address this error happens:

Traceback (most recent call last):
  File "c:\Users\pcat1\Programs\aternos\start.py", line 10, in <module>
    print(srvs[1].subdomain)
          ^^^^^^^^^^^^^^^^^
  File "C:\Users\pcat1\AppData\Roaming\Python\Python311\site-packages\python_aternos\atserver.py", line 277, in subdomain
    atdomain = self.domain
               ^^^^^^^^^^^
  File "C:\Users\pcat1\AppData\Roaming\Python\Python311\site-packages\python_aternos\atserver.py", line 311, in domain
    return self._info['ip']
           ~~~~~~~~~~^^^^^^
KeyError: 'ip'

Metadata

Metadata

Assignees

No one assigned

    Labels

    updateAternos API or security methods were changed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions