Sfoglia il codice sorgente

Exit script when no available users returned after multi-check

Cammy 6 anni fa
parent
commit
2553b4011d
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      pyinstalive/downloader.py

+ 4 - 0
pyinstalive/downloader.py

@@ -79,6 +79,10 @@ def start_multiple(instagram_api_arg, settings_arg, proc_arg):
 					log_info_blue('The process launching has been aborted by the user.')
 					log_seperator()				
 					sys.exit(0)
+		else:
+			log_info_green("There are currently no available livestreams or replays.")
+			log_seperator()
+			sys.exit(0)
 	except Exception as e:
 		log_error("Could not finish checking following users: {:s}".format(str(e)))
 		sys.exit(1)