2021.4 #19

Merged
edraft merged 237 commits from 2021.4 into master 2021-04-01 10:13:33 +02:00
Showing only changes of commit 5f36e0a43e - Show all commits

View File

@ -287,12 +287,14 @@ class PublisherService(PublisherABC):
os.remove(setup_file)
main = None
main_not_found = False
try:
main = importlib.import_module(self._build_settings.main)
except Exception as e:
Console.error('Could not find entry point', str(e))
main_not_found = True
if main is None or not hasattr(main, 'main'):
if (main is None or not hasattr(main, 'main')) and not main_not_found:
Console.error('Could not find entry point')
return