catch errors during install
This commit is contained in:
@@ -4,14 +4,19 @@ import sys
|
||||
import textwrap
|
||||
from pathlib import Path
|
||||
|
||||
log = logging.getLogger("install")
|
||||
|
||||
|
||||
def install():
|
||||
if sys.platform == 'win32' or sys.platform == 'cygwin':
|
||||
_windows_set_icon()
|
||||
else:
|
||||
if _is_executable():
|
||||
_linux_install_desktop_file()
|
||||
_linux_install_icon()
|
||||
try:
|
||||
if sys.platform == 'win32' or sys.platform == 'cygwin':
|
||||
_windows_set_icon()
|
||||
else:
|
||||
if _is_executable():
|
||||
_linux_install_desktop_file()
|
||||
_linux_install_icon()
|
||||
except:
|
||||
log.exception("failed to install system stuff")
|
||||
|
||||
|
||||
def _is_executable() -> bool:
|
||||
|
||||
Reference in New Issue
Block a user