Skip to content

Commit 78bf015

Browse files
authored
Fix pylint issue to raise exception correctly (#303)
1 parent 3a38ac0 commit 78bf015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/rpdk/java/codegen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ def _get_java_plugin_dependency_version(project):
466466
"not found in pom.xml."
467467
)
468468
return plugin_dependency_version.text
469-
except ParseError:
470-
raise InvalidMavenPOMError("pom.xml is invalid.")
469+
except ParseError as e:
470+
raise InvalidMavenPOMError("pom.xml is invalid.") from e
471471

472472
@logdebug
473473
def package(self, project, zip_file):

0 commit comments

Comments
 (0)