scc_access/scc_access.py

branch
development
changeset 55
c226bda2bb71
parent 54
5a2e8efdaae9
child 57
8d487e4e20ae
--- a/scc_access/scc_access.py	Thu Feb 04 10:19:13 2021 +0200
+++ b/scc_access/scc_access.py	Thu Feb 04 10:22:30 2021 +0200
@@ -118,6 +118,7 @@
                 logger.error(
                     "Measurement with id {} already exists on the SCC. Use --force_upload flag to overwrite it.".format(
                         measurement_id))
+                # TODO: Implement handling at the proper place. This does not allow the SCC class to be used by external programs.
                 sys.exit(1)
 
         # Get submit page
@@ -445,6 +446,8 @@
         else:
             logger.error('Could not access API. Status code %s.' % response.status_code)
 
+        # TODO: Implement better handling for status 401.
+
         if response_dict:
             measurement = Measurement(self.base_url, response_dict)
         else:

mercurial