mirror of
				https://github.com/enpaul/vault2vault.git
				synced 2025-11-04 09:26:46 +00:00 
			
		
		
		
	Merge pull request #3 from brycelowe/fix/password-binary-encoding
fix: remove encoding from password file reads
This commit is contained in:
		@@ -369,7 +369,7 @@ def _load_password(
 | 
			
		||||
 | 
			
		||||
    if fpath:
 | 
			
		||||
        try:
 | 
			
		||||
            with Path(fpath).resolve().open("rb", encoding="utf-8") as infile:
 | 
			
		||||
            with Path(fpath).resolve().open("rb") as infile:
 | 
			
		||||
                return VaultSecret(infile.read())
 | 
			
		||||
        except (FileNotFoundError, PermissionError) as err:
 | 
			
		||||
            raise RuntimeError(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user