iddb: Compatibility with python 3.2 was ensured.
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-bii_scripts/bin/iddb new-bii_scripts/bin/iddb
--- old-bii_scripts/bin/iddb 2022-09-28 11:50:02.436393776 +0200
+++ new-bii_scripts/bin/iddb 2022-09-28 11:50:02.436393776 +0200
@@ -21,6 +21,13 @@
# -----------------------------------------------
# global variables
+_pyver= (sys.version_info[0], sys.version_info[1])
+
+if _pyver <= (3,2):
+ HTTPEXCEPTION= http.client.HTTPException
+else:
+ HTTPEXCEPTION= http.client.RemoteDisconnected
+
DBNAME="id_db"
HOST="gwc2c.acc.bessy.de"
PORT=7643
@@ -113,7 +120,7 @@
"""execute StructuredData "get" command."""
try:
return self.XML_OBJ.fun.get(pattern,False,paths,DBNAME)
- except (http.client.RemoteDisconnected,
+ except (HTTPEXCEPTION,
socket.gaierror, socket.timeout) as e:
sys.exit(self.errmsg(str(e)))
except xmlrpc.client.Fault as e:
patch 547e73b465e924a1881e1c176bee36f2287bd97f
Author: Goetz.Pfeiffer@helmholtz-berlin.de
Date: Wed Dec 15 09:06:06 CET 2021
* iddb: Compatibility with python 3.2 was ensured.
On our host "elbe" python 3 is quite old, this caused "iddb" to fail since the
names of exceptions in module http.client are differnt in newer python
versions