sillsdev / languageforge-lexbox

Lexbox, SIL linguistic data hub
MIT License
7 stars 2 forks source link

HgService.GetModelVersionOfFlexProject will throw if the project is empty #1242

Closed hahn-kev closed 3 days ago

hahn-kev commented 4 days ago

Describe the bug When clicking the reload Model version button on the project page there's an error trace: https://ui.honeycomb.io/sil-language-forge/environments/staging/trace/bzrkhTWCFZk?fields[]=s_name&fields[]=s_serviceName&span=d43fa5e5b42823da

To Reproduce

  1. create a new project
  2. don' t upload anything so the repo is empty
  3. click refresh model version
  4. see error about json parsing error

Expected behavior nothing should happen, the model version should be left as null