[Replicant] PATCH fix for "TypeError: 'NoneType' object is not iterable" error
Alexis
sk-alexis at protonmail.ch
Tue Jan 18 18:23:51 UTC 2022
Here goes another patch for the nonetype errors
Carpe Diem, Irelativism
DiEM25.org Exarcheia/Tech.sov DSC
From 61fc6b1d2275d3a0904a79b8f877722c58e73b88 Mon Sep 17 00:00:00 2001
From: _I3^RELATIVISM <sk-alexis at protonmail.ch>
Date: Tue, 18 Jan 2022 18:17:07 +0000
Subject: [PATCH 2/2] fix TypeError: 'NoneType' object is not iterable
---
redmine2git.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/redmine2git.py b/redmine2git.py
index 3f1b446..24fc34b 100755
--- a/redmine2git.py
+++ b/redmine2git.py
@@ -47,7 +47,7 @@ def write_page(extension, output_directory, page):
if 'parent' in dir(page):
parent_dir_path = output_directory + os.sep + page.parent.title
if not os.path.exists(parent_dir_path):
- os.mkdir(parent_dir_path, mode=0o777, exist_ok=False)
+ os.mkdir(parent_dir_path, mode=0o777)
file_path = parent_dir_path + os.sep + page.title + extension
else:
file_path = output_directory + os.sep + page.title + extension
@@ -216,7 +216,7 @@ def sort_pages_by_date(redmine_instance, redmine_project):
# This should sort by modification date
#all_pages.sort(key=lambda item: item.updated_on)
- #return all_pages
+ return all_pages
def main():
if len(sys.argv) != 5:
@@ -255,4 +255,3 @@ def main():
if __name__ == '__main__':
main()
-
--
2.20.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/replicant/attachments/20220118/85a2377b/attachment.html>
More information about the Replicant
mailing list