Skip to content

Commit

Permalink
urllib3 imported at top
Browse files Browse the repository at this point in the history
  • Loading branch information
riley206 committed Mar 27, 2024
1 parent 39f26ad commit 2386dfb
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
# }}}


import random
from math import pi
import json
import sys
from platform_driver.interfaces import BaseInterface, BaseRegister, BasicRevert
from volttron.platform.agent import utils
from volttron.platform.vip.agent import Agent
import logging
import requests
from requests import get
import urllib3

from platform_driver.interfaces import BaseInterface, BaseRegister, BasicRevert
from volttron.platform.agent import utils
from volttron.platform.vip.agent import Agent


_log = logging.getLogger(__name__)
type_mapping = {"string": str, "int": int, "integer": int, "float": float, "bool": bool, "boolean": bool}
Expand Down Expand Up @@ -100,7 +100,6 @@ def configure(self, config_dict, registry_config_str):
raise ValueError("Access token is required.")

if not self.verify_ssl:
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

if self.ssl_cert_path:
Expand Down

0 comments on commit 2386dfb

Please sign in to comment.