Add error message to updatecoll.py when mediafolder does not have a trailing slash

This commit is contained in:
Junior 2026-03-09 22:23:48 +00:00
parent b119f7a6ed
commit 3a615c7eb6

View File

@ -13,6 +13,12 @@ except:
print()
sys.exit()
if apiconfig.mediafolder[-1] != "/":
print("Error!")
print(" mediafolder value in apiconfig.py does not have a trailing slash")
print()
sys.exit()
colcontents = {}
for col in apiconfig.colmap.values():
colcontents[col] = []