Skip to content

Commit

Permalink
Update Script - Fix Crash when auto update false
Browse files Browse the repository at this point in the history
When auto update was set to false in config, would crash because updateAvailable wasn't assigned in else statement
  • Loading branch information
ThioJoe committed Jan 1, 2022
1 parent 79fe05b commit e7a88fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion YouTubeSpammerPurge.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
### IMPORTANT: I OFFER NO WARRANTY OR GUARANTEE FOR THIS SCRIPT. USE AT YOUR OWN RISK.
### I tested it on my own and implemented some failsafes as best as I could,
### but there could always be some kind of bug. You should inspect the code yourself.
version = "2.5.2"
version = "2.5.3"
configVersion = 12
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

Expand Down Expand Up @@ -2439,6 +2439,7 @@ def main():
spamDomainList = ingest_list_file(spamDomainListPath)
if spamDomainList == None:
spamDomainList = ingest_asset_file(spamDomainListFileName)
updateAvailable = False
os.system(clear_command)

# Load any other data
Expand Down

0 comments on commit e7a88fa

Please sign in to comment.