X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Ftests%2Fupload.py;h=d256801a438b1de624d602db13555c6fcb48a69f;hp=742f973fb1d5e0709703f6722d0c8849ca2dd0b5;hb=29933fc257389f16f9c798f52a43e43800475a4a;hpb=e128118419c3bb413de4cff8445b9b6c5598a5ed;ds=sidebyside diff --git a/osm_nbi/tests/upload.py b/osm_nbi/tests/upload.py index 742f973..d256801 100755 --- a/osm_nbi/tests/upload.py +++ b/osm_nbi/tests/upload.py @@ -1,6 +1,19 @@ #! /usr/bin/python3 # -*- coding: utf-8 -*- +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import getopt import sys import requests @@ -95,5 +108,5 @@ if __name__ == "__main__": print("RX {}: {}".format(r.status_code, r.text)) if "id" in response: print("---\nid: {}".format(response["id"])) - except Exception as e: + except Exception: raise