Skip to content

Commit

Permalink
CI: Resolve flake8 issues in utils directory (OSGeo#4303)
Browse files Browse the repository at this point in the history
* resolved flake8 in utils

* updated .flake8

---------

Co-authored-by: Arohan Ajit <aajit@chirpn.com>
  • Loading branch information
2 people authored and Mahesh1998 committed Sep 19, 2024
1 parent ce6c91e commit c74a9fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ per-file-ignores =
# E741 ambiguous variable name 'l'
__init__.py: F401, F403
lib/init/grass.py: E722, F821, F841
utils/gitlog2changelog.py: E722, E712
man/build_check_rest.py: F403, F405
man/build_full_index_rest.py: F403, F405
man/parser_standard_options.py: F403, F405
Expand Down
8 changes: 4 additions & 4 deletions utils/gitlog2changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
author = authorList[1]
author = author[0 : len(author) - 1]
authorFound = True
except:
print("Could not parse authorList = '%s'" % (line))
except Exception as e:
print(f"Could not parse authorList = '{line}'. Error: {e!s}")

# Match the date line
elif line.startswith("Date:"):
Expand All @@ -76,8 +76,8 @@
date = dateList[1]
date = date[0 : len(date) - 1]
dateFound = True
except:
print("Could not parse dateList = '%s'" % (line))
except Exception as e:
print(f"Could not parse dateList = '{line}'. Error: {e!s}")
# The Fossil-IDs are ignored:
elif line.startswith(" Fossil-ID:") or line.startswith(" [[SVN:"):
continue
Expand Down

0 comments on commit c74a9fd

Please sign in to comment.