Skip to content

Commit

Permalink
Set ignores and excepts to flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Oct 11, 2022
1 parent 032104c commit 1129b74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions monitoring/probeim.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ def handler(signum, frame):
# In case of errors if delete the infra
if im and INF_ID:
im.delete_infrastructure(INF_ID)
except Exception as ex:
logging.info("Initializing --------------")
except Exception:
logging.exception("Error deleting the infra.")

msg = "%s: %s" % (rc_status_map[rc], msg)
if mean_time > 0:
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ commands = bash -c "nosetests -v test/unit/*.py test/unit/connectors/*.py -v --s
commands = bandit IM -r -f html -o bandit.html -s B108,B601,B104 --severity-level medium

[flake8]
max-line-length = 120
ignore = E402,E265
max-line-length = 120
exclude = doc,scripts

0 comments on commit 1129b74

Please sign in to comment.