mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-11-04 07:54:03 +00:00 
			
		
		
		
	lpapicache: remove try-except around login that only logs the error and then re-raises
This commit is contained in:
		
							parent
							
								
									06a04f642f
								
							
						
					
					
						commit
						9c1561ff26
					
				@ -74,12 +74,8 @@ class _Launchpad(object):
 | 
			
		||||
    def login(self, service=service, api_version=api_version):
 | 
			
		||||
        '''Enforce a non-anonymous login.'''
 | 
			
		||||
        if not self.logged_in:
 | 
			
		||||
            try:
 | 
			
		||||
                self.__lp = LP.login_with('ubuntu-dev-tools', service,
 | 
			
		||||
                                          version=api_version)
 | 
			
		||||
            except IOError as error:
 | 
			
		||||
                Logger.error(str(error))
 | 
			
		||||
                raise
 | 
			
		||||
            self.__lp = LP.login_with('ubuntu-dev-tools', service,
 | 
			
		||||
                                      version=api_version)
 | 
			
		||||
        else:
 | 
			
		||||
            raise AlreadyLoggedInError('Already logged in to Launchpad.')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user