Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #319 from sharpering/master
Browse files Browse the repository at this point in the history
Fix Python 2.x to 3.x syntax
  • Loading branch information
MikeMillerGIS authored Jan 13, 2017
2 parents 64565e2 + 283767a commit ec718cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/src/delete_rows_from_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def main(*argv):
outputPrinter(message="with error message: %s" % synerror,typeOfMessage='error')
outputPrinter(message="ArcPy Error Message: %s" % arcpy.GetMessages(2),typeOfMessage='error')
arcpy.SetParameterAsText(7, "false")
except (common.ArcRestHelperError),e:
except (common.ArcRestHelperError) as e:
outputPrinter(message=e,typeOfMessage='error')
arcpy.SetParameterAsText(7, "false")
except:
Expand Down Expand Up @@ -190,6 +190,6 @@ def main(*argv):
gc.collect()
if __name__ == "__main__":
argv = tuple(arcpy.GetParameterAsText(i)
for i in xrange(arcpy.GetArgumentCount()))
for i in range(arcpy.GetArgumentCount()))
main(*argv)

0 comments on commit ec718cf

Please sign in to comment.