Skip to content

Commit

Permalink
[PYTHON] Show the DependencyErrorDialog when loading dependencies fails
Browse files Browse the repository at this point in the history
  • Loading branch information
faggionluca committed Sep 26, 2020
1 parent dc80d32 commit bd59a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megascan_link_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def checkDependencies() -> bool:
subprocess.check_call(cmdCall)
except Exception as e:
log.LoggerLink.Log("Error during pip command: {}".format(e), log.logging.ERROR)
showErrorDialog()
finally:
try:
log.LoggerLink.Log("Check installed dependecies")
Expand All @@ -103,6 +102,7 @@ def checkDependencies() -> bool:
return True
except ImportError:
log.LoggerLink.Log("Dependecies error! cannot start plugin", log.logging.ERROR)
showErrorDialog()
return False

class Data(object):
Expand Down

0 comments on commit bd59a35

Please sign in to comment.