sys.argv[1:] is not available in all addon threads

This commit is contained in:
Odd Stråbø 2020-04-19 13:08:00 +02:00
parent 3f63e7c213
commit 0d4962ad83

View file

@ -23,8 +23,11 @@ from helper import LazyLogger
LOG = LazyLogger(__name__)
ADDON_BASE_URL = sys.argv[0]
try:
PROCESS_HANDLE = int(sys.argv[1])
QUERY_STRING = sys.argv[2]
except IndexError:
pass
#################################################################################################