Browse Source

minor fix in mglib.utils

pull/3/head
Eugen Ciur 2 years ago
parent
commit
0158fb8295
  1. 5
      changelog.md
  2. 6
      mglib/utils.py
  3. 2
      setup.py

5
changelog.md

@ -1,6 +1,11 @@
# Changelog
## [1.2.7] - 17 August 2020
### Changed
- Do not raise exception when encoutering unsafe extention, log warning message instead.
## [1.2.6] - 11 August 2020

6
mglib/utils.py

@ -44,7 +44,11 @@ def safe_to_delete(place):
for name in files:
base, ext = os.path.splitext(name)
if ext not in SAFE_EXTENSIONS:
raise Exception("Trying to delete unsefe location")
logger.warning(
f"Trying to delete unsefe location: "
f"extention={ext} not found in {SAFE_EXTENSIONS}"
)
return False
return True

2
setup.py

@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
setup(
name="mglib",
version="1.2.6",
version="1.2.7",
author="Eugen Ciur",
author_email="eugen@papermerge.com",
url="https://github.com/papermerge/mglib",

Loading…
Cancel
Save