Welcome TTT to nijiEN! + minor changes

This commit is contained in:
muskit
2023-10-30 19:07:52 -07:00
parent 3ad7e42e73
commit f2cbd2512e
4 changed files with 261 additions and 3 deletions
+7 -2
View File
@@ -58,8 +58,13 @@ def init_data():
# Initialize talent account lists
talent_lists.init()
# Initialize queue files system
ttq.TalentTweetQueue()
if PROGRAM_ARGS.mode:
mode = PROGRAM_ARGS.mode.lower()
if mode != 'cmd':
# Initialize queue files system
ttq.TalentTweetQueue()
else:
ttq.TalentTweetQueue()
def main():
global PROGRAM_ARGS
+1 -1
View File
@@ -100,7 +100,7 @@ class Scraper:
print("Unhandled exception occurred, trying again as private...")
return self.get_tweet(id, True)
else:
print("Unhandled exception occurred, tweet is probably unavailable")
print(f"Unhandled exception occurred, tweet {id} is probably unavailable")
print(e)
return None