mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-08 14:57:57 +03:00
Improve readability and exception comments
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -56,7 +56,10 @@ class UserRoutings(Mixins.CleanupOnExit, StorageBackend):
|
||||
|
||||
raise TypeError('routing repository root must be an object')
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
self._restoreFailed = True
|
||||
|
||||
logger.exception('failed to restore persisted routings')
|
||||
|
||||
return {}
|
||||
|
||||
@@ -136,7 +136,10 @@ class UserServers(Mixins.CleanupOnExit, StorageBackend):
|
||||
|
||||
raise TypeError('server repository root must contain a model list')
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
self._restoreFailed = True
|
||||
|
||||
logger.exception('failed to restore persisted server configurations')
|
||||
|
||||
return {'model': []}
|
||||
|
||||
@@ -187,7 +187,10 @@ class UserSubs(Mixins.CleanupOnExit, StorageBackend):
|
||||
|
||||
raise TypeError('subscription repository root must be an object')
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
self._restoreFailed = True
|
||||
|
||||
logger.exception('failed to restore persisted subscriptions')
|
||||
|
||||
return {}
|
||||
|
||||
@@ -56,6 +56,8 @@ class UserTUNSettings(Mixins.CleanupOnExit, StorageBackend):
|
||||
|
||||
raise TypeError('TUN settings repository root must be an object')
|
||||
except Exception:
|
||||
# Any non-exit exceptions
|
||||
|
||||
self._restoreFailed = True
|
||||
logger.exception('failed to restore persisted TUN settings')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user