Skip to content

Commit

Permalink
py2/3 filenotfound
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jun 13, 2019
1 parent f1bd161 commit b61645a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hook/zmes_hook_helpers/image_manip.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@


def processPastDetection (bbox, label, conf,mid):

try:
FileNotFoundError
except NameError:
FileNotFoundError = IOError

mon_file = g.config['image_path'] + '/monitor-'+mid +'-data.pkl'
g.logger.debug ('trying to load '+mon_file)
try:
Expand Down

0 comments on commit b61645a

Please sign in to comment.