fixed land map for gulf; ability to get logs from settings; minor trigger updates

This commit is contained in:
Vasyl Horbachenko
2018-10-11 04:12:02 +03:00
parent 7a8dfeb819
commit 5bbf3fc49f
7 changed files with 83 additions and 47 deletions

View File

@@ -9,9 +9,14 @@ from tkinter.scrolledtext import *
_version_string = None
def _error_prompt():
class ShowLogsException(Exception):
pass
def _error_prompt(oops=True):
tk = Tk()
Label(tk, text="Oops, something went wrong.").grid(row=0)
if oops:
Label(tk, text="Oops, something went wrong.").grid(row=0)
Label(tk, text="Please send following text to the developer:").grid(row=1)
text = ScrolledText(tk)
@@ -22,7 +27,7 @@ def _error_prompt():
def _handle_exception(self, exception: BaseException, *args):
logging.exception(exception)
_error_prompt()
_error_prompt(isinstance(exception, ShowLogsException))
def setup_version_string(str):