Skip to content

Commit

Permalink
Merge pull request from GHSA-v5f6-hjmf-9mc5
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla authored Nov 28, 2023
1 parent 4d83d04 commit c57355d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydrive2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from yaml import YAMLError

try:
from yaml import CLoader as Loader
from yaml import CSafeLoader as SafeLoader
except ImportError:
from yaml import Loader
from yaml import SafeLoader

SETTINGS_FILE = "settings.yaml"
SETTINGS_STRUCT = {
Expand Down Expand Up @@ -114,7 +114,7 @@ def LoadSettingsFile(filename=SETTINGS_FILE):
"""
try:
with open(filename) as stream:
data = load(stream, Loader=Loader)
data = load(stream, Loader=SafeLoader)
except (YAMLError, OSError) as e:
raise SettingsError(e)
return data
Expand Down

0 comments on commit c57355d

Please sign in to comment.