Note for future improvements. development

Thu, 04 Feb 2021 10:22:30 +0200

author
ioannis@ioannis-VirtualBox
date
Thu, 04 Feb 2021 10:22:30 +0200
branch
development
changeset 55
c226bda2bb71
parent 54
5a2e8efdaae9
child 56
c9df25012168

Note for future improvements.

scc_access/scc_access.py file | annotate | diff | comparison | revisions
--- 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