diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-08-08 14:25:00 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-08-09 11:05:02 +0200 |
commit | 73ecb48113eb8d2a37cee89e3481415089867709 (patch) | |
tree | 1608a98f2347db2cd9397d5ab1860a6f25559486 /src/virtual/ogOperations.py | |
parent | 71b3211d3d64cae19daf7e940516f47bc284450c (diff) |
src: log without backtrace in not implemented functions
Don't log a backtrace when a not implemented function is called
in ogClient.
Log a "Function not implemented" message.
Diffstat (limited to 'src/virtual/ogOperations.py')
-rw-r--r-- | src/virtual/ogOperations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py index c17bfb4..763c126 100644 --- a/src/virtual/ogOperations.py +++ b/src/virtual/ogOperations.py @@ -467,10 +467,10 @@ class OgVirtualOperations: return json_dict def cache_delete(self, request, ogRest): - raise NotImplementedError + raise OgError('Function not implemented') def cache_fetch(self, request, ogRest): - raise NotImplementedError + raise OgError('Function not implemented') def software(self, request, path, ogRest): DPKG_PATH = '/var/lib/dpkg/status' |