Updated module dependency name

This commit is contained in:
Anon 2023-03-11 16:48:02 -08:00
parent 98a6cd40fb
commit 8be03dd7a9

View File

@ -20,7 +20,7 @@ import os
import sys import sys
import argparse import argparse
import signal import signal
import common import FediBot
import contextlib import contextlib
import yanlib import yanlib
import fnmatch import fnmatch
@ -67,7 +67,7 @@ def get_list_of_hashes_with_profiles(f_name, profiles, profile_default):
return [YanBotHash(i, get_profile(i, profiles, profile_default)) for i in yanlib.get_hash_list(f_name)] return [YanBotHash(i, get_profile(i, profiles, profile_default)) for i in yanlib.get_hash_list(f_name)]
class YandereBot(common.YandereBot): class YandereBot(FediBot.YandereBot):
listPictures = [] listPictures = []
lenBlacklist = 0 lenBlacklist = 0
@ -173,7 +173,7 @@ class YandereBot(common.YandereBot):
try: try:
return super(YandereBot, self).post(picked) return super(YandereBot, self).post(picked)
# Attempted to post a file that doesn't exist (immediately repost ignoring retry_seconds) # Attempted to post a file that doesn't exist (immediately repost ignoring retry_seconds)
except (FileNotFoundError, common.InvalidPost): except (FileNotFoundError, FediBot.InvalidPost):
print("File not found:", picked.get_hash_path()) print("File not found:", picked.get_hash_path())
reinsert_image = False reinsert_image = False
@ -282,11 +282,11 @@ if __name__ == "__main__":
except FailedToLoadCfg: except FailedToLoadCfg:
sys.exit(6) sys.exit(6)
# Exceptions raised from the bot # Exceptions raised from the bot
except common.Debug: except FediBot.Debug:
sys.exit(5) sys.exit(5)
except common.BadCfgFile: except FediBot.BadCfgFile:
sys.exit(4) sys.exit(4)
except BadPostSettings: except BadPostSettings:
sys.exit(3) sys.exit(3)
except common.FailedLogin: except FediBot.FailedLogin:
sys.exit(2) sys.exit(2)