Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

debug output for selector.getprop

  • Loading branch information...
commit 33af31038411fffcec9c42b567b277e1418ba692 1 parent a33318e
Alexey Rosolovskiy authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/selector.py
View
6 lib/selector.py
@@ -9,6 +9,12 @@ def getprop(obj,path,keyErrorAsNone=False):
"""
if '/' not in path:
if keyErrorAsNone:
+ if isinstance(obj, list):
+ f = open('/Users/alexey/Work/ingestion/output.txt', 'w')
+ f.write(path + "\n")
+ f.write(str(obj))
+ f.close()
+ return None
return obj.get(path)
else:
return obj[path]
Please sign in to comment.
Something went wrong with that request. Please try again.