# HG changeset patch # User ioannis@ioannis-VirtualBox # Date 1612426950 -7200 # Node ID c226bda2bb71ac937e46fffbe64c7cedcb739c1b # Parent 5a2e8efdaae9375868fe4a77ae170cafdcfdd9bd Note for future improvements. diff -r 5a2e8efdaae9 -r c226bda2bb71 scc_access/scc_access.py --- 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: