import.py: Proper check for second argument (#612)

This commit is contained in:
Olivier Bilodeau
2018-04-15 16:05:45 -04:00
committed by Kevin Chung
parent 8c4f915cb4
commit f4d89e25ab

View File

@@ -8,7 +8,7 @@ import sys
app = create_app()
with app.app_context():
if sys.argv[2]:
if len(sys.argv) == 2:
segments = sys.argv[2].split(',')
else:
segments = None