Skip to content

Commit

Permalink
throw user into python debugger only if an environmental variable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixen committed Dec 6, 2024
1 parent 5f6dc38 commit 5705632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions check_server_compatibility.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import time
import uuid
import os
from datetime import date
from datetime import datetime
from datetime import timedelta
Expand Down Expand Up @@ -77,11 +78,9 @@


def _debugger():
import pdb

## TODO: check some environmental flags
## only hackers want the debug mode
pdb.set_trace()
if os.environ.get('PYTHON_CALDAV_DEBUGMODE') == "DEBUG_PDB":
import pdb
pdb.set_trace()


def _delay_decorator(f, delay=10):
Expand Down
5 changes: 3 additions & 2 deletions tests/compatibility_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,13 @@
nextcloud = [
'date_search_ignores_duration',
'sync_breaks_on_delete',
'no_recurring_todo',
'combined_search_not_working',
'text_search_is_exact_match_sometimes',
'search_needs_comptype',
'calendar_color',
'calendar_order'
'calendar_order',
'date_todo_search_ignores_duration',
'broken_expand_on_exceptions'
]

fastmail = [
Expand Down

0 comments on commit 5705632

Please sign in to comment.