Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions python/discord_command_bot/src/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import requests, os
from .utils import throw_if_missing
try:
from .utils import throw_if_missing
except (ImportError, ValueError):
from utils import throw_if_missing


def setup():
Expand All @@ -16,7 +19,7 @@ def setup():

response = requests.post(
REGISTER_API,
data={
json={
"name": "hello",
"description": "Hello World Command",
},
Expand Down