2021.4 #19
@ -287,12 +287,14 @@ class PublisherService(PublisherABC):
|
|||||||
os.remove(setup_file)
|
os.remove(setup_file)
|
||||||
|
|
||||||
main = None
|
main = None
|
||||||
|
main_not_found = False
|
||||||
try:
|
try:
|
||||||
main = importlib.import_module(self._build_settings.main)
|
main = importlib.import_module(self._build_settings.main)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Console.error('Could not find entry point', str(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')
|
Console.error('Could not find entry point')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user