Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Omicron166 committed Mar 6, 2022
1 parent 0b7892d commit 4e92024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/python/lns.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def resolve(self, name: str):

def dig(self, name: str):
try:
r = requests.get(self.server + '/' + name)
if r.status_code != 200: raise Exception()
r = requests.get(self.server + '/records/' + name + '.json')
except: raise NameNotFound('The record does not exist')

try: return r.json()
Expand Down

0 comments on commit 4e92024

Please sign in to comment.