mirror of
https://github.com/google/nomulus.git
synced 2025-07-06 11:13:35 +02:00
Fix broken RegistryCli (#728)
This commit is contained in:
parent
8c04bf2599
commit
1022817384
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,6 @@ import com.google.appengine.tools.remoteapi.RemoteApiOptions;
|
|||
import com.google.common.base.Throwables;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.Iterables;
|
||||
import google.registry.backup.AppEngineEnvironment;
|
||||
import google.registry.config.RegistryConfig;
|
||||
import google.registry.model.ofy.ObjectifyService;
|
||||
import google.registry.persistence.transaction.TransactionManagerFactory;
|
||||
|
@ -179,7 +178,7 @@ final class RegistryCli implements AutoCloseable, CommandRunner {
|
|||
Iterables.getOnlyElement(jcommander.getCommands().get(parsedCommand).getObjects());
|
||||
loggingParams.configureLogging(); // Must be called after parameters are parsed.
|
||||
|
||||
try (AppEngineEnvironment env = new AppEngineEnvironment()) {
|
||||
try {
|
||||
runCommand(command);
|
||||
} catch (RuntimeException ex) {
|
||||
if (Throwables.getRootCause(ex) instanceof LoginRequiredException) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue