Skip to content

Commit

Permalink
throw if file not found instead of returning null (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 authored Jan 23, 2024
1 parent e7606a0 commit e8b3641
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions pathplannerlib-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ classifiers = [
]
keywords = ["pathplannerlib"]
dependencies = [
"pyntcore >=2024.1.1",
"robotpy-wpimath >=2024.1.1",
"pyntcore >=2024.2.1",
"robotpy-wpimath >=2024.2.1",
"robotpy-commands-v2 >=2024.0.0b4",
"robotpy-wpiutil >=2024.1.1",
"robotpy-hal >=2024.1.1",
"robotpy-wpiutil >=2024.2.1",
"robotpy-hal >=2024.2.1",
]
requires-python = ">=3.8"

Expand Down
8 changes: 4 additions & 4 deletions pathplannerlib-python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
setuptools~=68.2.0
pyntcore>=2024.1.1
robotpy-wpimath>=2024.1.1
pyntcore>=2024.2.1
robotpy-wpimath>=2024.2.1
robotpy-commands-v2>=2024.0.0b4
robotpy-wpiutil>=2024.1.1
robotpy-hal>=2024.1.1
robotpy-wpiutil>=2024.2.1
robotpy-hal>=2024.2.1
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ public static PathPlannerPath fromPathFile(String pathName) {
PPLibTelemetry.registerHotReloadPath(pathName, path);
return path;
} catch (Exception e) {
e.printStackTrace();
return null;
throw new RuntimeException(e);
}
}

Expand Down Expand Up @@ -380,8 +379,7 @@ public static PathPlannerPath fromChoreoTrajectory(String trajectoryName) {

return path;
} catch (Exception e) {
e.printStackTrace();
return null;
throw new RuntimeException(e);
}
}

Expand Down

0 comments on commit e8b3641

Please sign in to comment.