mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 22:50:20 +03:00
Added handling of invalid username when requesting cache
This commit is contained in:
parent
7507c558ba
commit
d84b754292
@ -35,7 +35,10 @@ class fs_file_cache:
|
||||
def __init__(self, cache_name, username = None):
|
||||
self.cache_name = cache_name
|
||||
if username:
|
||||
self.storage_uri = file_cache_path_home(username)
|
||||
try:
|
||||
self.storage_uri = file_cache_path_home(username)
|
||||
except:
|
||||
self.storage_uri = file_cache_dir()
|
||||
else:
|
||||
self.storage_uri = file_cache_dir()
|
||||
logdata = dict({'cache_file': self.storage_uri})
|
||||
|
Loading…
x
Reference in New Issue
Block a user