Skip to content
This repository was archived by the owner on Oct 9, 2021. It is now read-only.

Commit 7f5ce15

Browse files
committed
move requests import after try block
1 parent ce9e45f commit 7f5ce15

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wakatime/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from .constants import API_ERROR, AUTH_ERROR, SUCCESS, UNKNOWN_ERROR
2020

2121
from .offlinequeue import Queue
22-
from .packages.requests.exceptions import RequestException
2322
from .session_cache import SessionCache
2423
from .utils import get_hostname, get_user_agent
2524
from .packages import tzlocal
@@ -38,6 +37,9 @@
3837
sys.exit(UNKNOWN_ERROR)
3938

4039

40+
from .packages.requests.exceptions import RequestException
41+
42+
4143
def send_heartbeats(heartbeats, args, configs, use_ntlm_proxy=False):
4244
"""Send heartbeats to WakaTime API.
4345

0 commit comments

Comments
 (0)