forked from expo/troggle
Better error messages
This commit is contained in:
parent
40f413ba47
commit
144610d6c2
@ -99,7 +99,7 @@ def parseSurveyScans(expedition, logfile=None):
|
|||||||
#scanList = listdir(expedition.year, surveyFolder)
|
#scanList = listdir(expedition.year, surveyFolder)
|
||||||
scanList=os.listdir(os.path.join(yearPath,surveyFolder))
|
scanList=os.listdir(os.path.join(yearPath,surveyFolder))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
print(surveyFolder + " ignored\r",)
|
print("Folder: " + surveyFolder + " ignored\r")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for scan in scanList:
|
for scan in scanList:
|
||||||
@ -107,7 +107,7 @@ def parseSurveyScans(expedition, logfile=None):
|
|||||||
scanChopped=re.match(r'(?i).*(notes|elev|plan|elevation|extend)(\d*)\.(png|jpg|jpeg)',scan).groups()
|
scanChopped=re.match(r'(?i).*(notes|elev|plan|elevation|extend)(\d*)\.(png|jpg|jpeg)',scan).groups()
|
||||||
scanType,scanNumber,scanFormat=scanChopped
|
scanType,scanNumber,scanFormat=scanChopped
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
print(scan + " ignored\r",)
|
print("File: " + scan + " ignored\r")
|
||||||
continue
|
continue
|
||||||
if scanType == 'elev' or scanType == 'extend':
|
if scanType == 'elev' or scanType == 'extend':
|
||||||
scanType = 'elevation'
|
scanType = 'elevation'
|
||||||
|
Loading…
Reference in New Issue
Block a user