From 1265fead13c2d775d54e21791d1e10c6906ddb16 Mon Sep 17 00:00:00 2001 From: Marko Petric <marko.petric@cern.ch> Date: Fri, 6 Apr 2018 14:54:44 +0200 Subject: [PATCH] Create empty dictionary if TGeoUnits do not exist --- DDCore/python/dd4hep_base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/DDCore/python/dd4hep_base.py b/DDCore/python/dd4hep_base.py index 5a82370b6..9b10e4b5c 100644 --- a/DDCore/python/dd4hep_base.py +++ b/DDCore/python/dd4hep_base.py @@ -254,5 +254,6 @@ try: return len(items) except: print 'WARNING: No units from TGeoUnit can be imported. This is normal for ROOT < 6.12.0' + TGeoUnits = {} def import_units(): return 0 -- GitLab