Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the repository URL #3192

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Add a try-catch around interpretating mod_info.lua
  • Loading branch information
Garanas committed Jun 2, 2024
commit e197e6703a380976ac67465755acd11f3e14da34
8 changes: 6 additions & 2 deletions src/main/java/com/faforever/client/mod/ModService.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,12 @@ public CompletableTask<Void> uploadMod(Path modPath) {
modUploadTask.setModPath(modPath);

// retrieve information from the mod_info.lua to send to the API
ModVersion modVersion = extractModInfo(modPath);
modUploadTask.setRepositoryURL(modVersion.mod().repositoryURL());
try {
ModVersion modVersion = extractModInfo(modPath);
modUploadTask.setRepositoryURL(modVersion.mod().repositoryURL());
} catch (Exception e) {
// ???, do nothing?
}

return taskService.submitTask(modUploadTask);
}
Expand Down
Loading