disable translation instead of throwing an Error if the user is on development i2p router build

pull/53/head
Zlatin Balevsky 2020-06-05 20:05:03 +01:00
parent 061a1a88dd
commit 4f626615d8
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 5 additions and 1 deletions

View File

@ -199,7 +199,11 @@ public class Util {
if (!s.equals(tx))
map.put(s, tx);
}
return JSONObject.toJSONString(map);
try {
return JSONObject.toJSONString(map);
} catch (NoClassDefFoundError json2) {
return "{}"; // TODO: upgrade to json-simple 2.x
}
}