Skip to content

Commit

Permalink
Undo reformatting of traceback example
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkubi committed Dec 11, 2021
1 parent f874a08 commit e34eb46
Showing 1 changed file with 14 additions and 33 deletions.
47 changes: 14 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ An easy to use Python wrapper for the Pterodactyl Panel API.

## State of the project

Support for Pterodactyl 1.x endpoints is mostly completed, however some
endpoints are still missing. Future versions will not attempt to remain
backwards compatible with versions of Pterodactyl before 1.0, however old
versions of pydactyl that do support 0.7 will remain available.
Support for Pterodactyl 1.x endpoints is mostly completed, however some
endpoints are still missing. Future versions will not attempt to remain backwards compatible with versions of Pterodactyl before 1.0, however old versions of pydactyl that do support 0.7 will remain available.

The 1.0 release is mostly stable and will not see significant changes until the
Pterodactyl 2.0 release. Pull Requests will still be accepted and new endpoints
will continue to be added. Pterodactyl API changes are expected in the 2.0
release, and there will likely be a refactor of the pydactyl interface at that
time. pydactyl 2.0 will be released once this work is completed.
The 1.0 release is mostly stable and will not see significant changes until
the Pterodactyl 2.0 release. Pull Requests will still be accepted
and new endpoints will continue to be added. Pterodactyl API changes are
expected in the 2.0 release, and there will likely be a refactor of the pydactyl interface at that
time. pydactyl 2.0 will be released once this work is completed.

If you encounter problems, find APIs that haven't been implemented, or have a
feature request please file a [Github issue][issues].
Expand Down Expand Up @@ -86,30 +84,13 @@ location_ids field to an invalid location it displays an error:
api.servers.create_server(name='My Paper Server', user_id=1, nest_id=1,
egg_id=3, memory_limit=8000, swap_limit=0,
disk_limit=0, location_ids=[199])
Traceback(most
recent
call
last):
File
"<input>", line
6, in < module >
File
"D:\code\pydactyl\pydactyl\api\servers.py", line
268, in create_server
mode = 'POST', data = data, json = False)
File
"D:\code\pydactyl\pydactyl\api\base.py", line
98, in _api_request
'code'], errors['detail'])
pydactyl.exceptions.PterodactylApiError: Bad
API
Request(400) - NoViableNodeException - No
nodes
satisfying
the
requirements
specified
for automatic deployment could be found.
Traceback (most recent call last):
File "<input>", line 6, in <module>
File "D:\code\pydactyl\pydactyl\api\servers.py", line 268, in create_server
mode='POST', data=data, json=False)
File "D:\code\pydactyl\pydactyl\api\base.py", line 98, in _api_request
'code'], errors['detail'])
pydactyl.exceptions.PterodactylApiError: Bad API Request(400) - NoViableNodeException - No nodes satisfying the requirements specified for automatic deployment could be found.
```

You can use the User class to add, modify, and delete panel users.
Expand Down

0 comments on commit e34eb46

Please sign in to comment.