Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimaHoarder committed Dec 14, 2020
1 parent 3b7d174 commit 8da3cd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apis/api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from requests.adapters import HTTPAdapter
from multiprocessing.dummy import Pool as ThreadPool
from itertools import chain, zip_longest, groupby, product
from os.path import dirname as up


def setup_logger(name, log_file, level=logging.INFO):
Expand All @@ -31,6 +32,9 @@ def setup_logger(name, log_file, level=logging.INFO):
return logger


path = up(up(os.path.realpath(__file__)))
os.chdir(path)

log_error = setup_logger('errors', 'errors.log')

global_settings = None
Expand Down
4 changes: 0 additions & 4 deletions helpers/main_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import re
from datetime import datetime
from itertools import chain, zip_longest, groupby, product
from os.path import dirname as up
from urllib.parse import urlparse
import time
import random
Expand All @@ -36,9 +35,6 @@
from mergedeep import merge, Strategy


path = up(up(os.path.realpath(__file__)))
os.chdir(path)

warnings.filterwarnings(
"ignore", message='.*looks like a URL.*', category=UserWarning, module='bs4')

Expand Down

0 comments on commit 8da3cd7

Please sign in to comment.