Skip to content

Commit

Permalink
Merge pull request #619 from Liam-Deacon/bugfix/618
Browse files Browse the repository at this point in the history
fix: Handle zero-length tuple during exception handling within `Project.__init__()`
  • Loading branch information
ZedThree authored Feb 2, 2024
2 parents 809aa10 + c710776 commit e7a672f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ford/fortran_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(self, settings: ProjectSettings):
if not settings.dbg:
raise e

warn(f"Error parsing {relative_path}.\n\t{e.args[0]}")
warn(f"Error parsing {relative_path}.\n\t{e.args if len(e.args) == 0 else e.args[0]}")
continue

def _fortran_file(
Expand Down

0 comments on commit e7a672f

Please sign in to comment.