Compare commits

..

No commits in common. "scottwallacesh/dev" and "main" have entirely different histories.

3 changed files with 8 additions and 21 deletions

View file

@ -1,12 +0,0 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*.py]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

View file

@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: [3.6, 3.7, 3.8, 3.9] python-version: [3.6, 3.7, 3.8]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View file

@ -30,14 +30,13 @@ class Config:
logging.debug('Parsing config') logging.debug('Parsing config')
parsed = {} parsed = {}
if configfile is not None: try:
try: with open(configfile, 'r') as file:
with open(configfile, 'r') as file: parsed = yaml.safe_load(file.read())
parsed = yaml.safe_load(file.read()) except FileNotFoundError as error:
except FileNotFoundError as error: logging.warning('No config file found (%s)', error.filename)
logging.warning('No config file found (%s)', error.filename) except TypeError:
except TypeError: logging.warning('No config file provided.')
logging.warning('No config file provided.')
# Iterate over the config defaults and check for environment variable # Iterate over the config defaults and check for environment variable
# overrides, then check for any items in the config, otherwise # overrides, then check for any items in the config, otherwise