python-aternos
python-aternos copied to clipboard
Getting server domain/address/subdomain doesn't work
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'
same
I have the same problem but atserver._info is empty(equal {})
Same here.
Same here.
I recommend not using this, my aternos account recently got banned due to this.