Skip to content

Commit

Permalink
Updating site checkers, disabling suspended sites (#1266)
Browse files Browse the repository at this point in the history
* Fixing checks for broken sites and repairing the ones that were changed

* little tweaks

* little tweaks

---------

Co-authored-by: Weekrow <[email protected]>
  • Loading branch information
MeowyPouncer and Weekrow authored Oct 27, 2023
1 parent 01121d7 commit f1ea12d
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 44 deletions.
2 changes: 1 addition & 1 deletion cookies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
pixabay.com FALSE / FALSE 0 anonymous_user_id c1e4ee09-5674-4252-aa94-8c47b1ea80ab
pixabay.com FALSE / FALSE 1647214439 csrftoken vfetTSvIul7gBlURt6s985JNM18GCdEwN5MWMKqX4yI73xoPgEj42dbNefjGx5fr
pixabay.com FALSE / FALSE 1647300839 client_width 1680
pixabay.com FALSE / FALSE 748111764839 is_human 1
pixabay.com FALSE / FALSE 748111764839 is_human 1
3 changes: 3 additions & 0 deletions maigret/checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ def __init__(self, *args, **kwargs):


class AiodnsDomainResolver(CheckerBase):
if sys.platform == 'win32': # Temporary workaround for Windows
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

def __init__(self, *args, **kwargs):
loop = asyncio.get_event_loop()
self.logger = kwargs.get('logger', Mock())
Expand Down
2 changes: 1 addition & 1 deletion maigret/maigret.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ async def main():
arg_parser = setup_arguments_parser(settings)
args = arg_parser.parse_args()

# Re-set loggging level based on args
# Re-set logging level based on args
if args.debug:
log_level = logging.DEBUG
elif args.info:
Expand Down
Loading

0 comments on commit f1ea12d

Please sign in to comment.