Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
czbag committed Nov 19, 2023
1 parent 89194de commit 3a2436e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from concurrent.futures import ThreadPoolExecutor

import questionary
from loguru import logger
from questionary import Choice

from config import ACCOUNTS
Expand Down Expand Up @@ -67,7 +68,10 @@ def get_wallets():


async def run_module(module, account_id, key):
await module(account_id, key)
try:
await module(account_id, key)
except Exception as e:
logger.error(e)

if REMOVE_WALLET:
remove_wallet(key)
Expand Down Expand Up @@ -99,6 +103,8 @@ def main(module):
if __name__ == '__main__':
print("❤️ Subscribe to me – https://t.me/sybilwave\n")

logger.add("logging.log")

module = get_module()
if module == "tx_checker":
get_tx_count()
Expand Down

0 comments on commit 3a2436e

Please sign in to comment.