Well, strange things happen. I created the file and now the exception is gone. When I use "use_keyring = 1" in [genereal], it still stores the password in the .oscrc file. When I remove user=a and pass=a from [https://api.opensuse.org] and replace them with "keyring = 1" it doesn't ask for password again, but "osc up" works. It doesn't matter if KWalletManager is opened/closed, the program doesn't ask for permission.