Implement search UI

Discovered severe inadequacies. Some of them were in the program.
This commit is contained in:
BasioMeusPuga
2019-01-08 05:47:50 +05:30
parent f9eec130dd
commit 026fff3d7a
20 changed files with 6383 additions and 5576 deletions

View File

@@ -81,7 +81,7 @@ class DefinitionsUI(QtWidgets.QDialog, definitions.Ui_Dialog):
if response.getcode() == 200:
return_json = json.loads(response.read())
return return_json
except urllib.error.HTTPError:
except (urllib.error.HTTPError, urllib.error.URLError):
return None
def find_definition(self, word):