mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-26 07:08:04 +00:00
Enable ResourceWarning handling
This commit is contained in:
3
main.py
3
main.py
@@ -12,6 +12,7 @@ if __name__ == "__main__":
|
||||
import asyncio
|
||||
import logging
|
||||
import argparse
|
||||
import warnings
|
||||
import traceback
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
@@ -31,6 +32,8 @@ if __name__ == "__main__":
|
||||
from exceptions import CaptchaRequired
|
||||
from constants import CALL, SELF_PATH, FILE_FORMATTER, LOG_PATH, WINDOW_TITLE
|
||||
|
||||
warnings.simplefilter("default", ResourceWarning)
|
||||
|
||||
class Parser(argparse.ArgumentParser):
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user