Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#202 closed Defect (fixed)

Bug in flex_extract v7.0.3 public user mode

Reported by: anphi Owned by: anphi
Priority: critical Milestone:
Component: flex_extract Version:
Keywords: flex_extract_v7.0.3 Cc:


I got a message from a user who reported a problem in the public user mode with the following error message:

Traceback (most recent call last):
  File "./", line 112, in <module>
  File "./", line 57, in main
  File "/media/flexpart/FLEXPART_ROOT_TEMPLATE/scripts/flex_extract_v7.0.3/python/", line 111, in getMARSdata
    flexpart.retrieve(server, c.public, dates, times, c.inputdir)
  File "/media/flexpart/FLEXPART_ROOT_TEMPLATE/scripts/flex_extract_v7.0.3/python/", line 979, in retrieve
  File "/media/flexpart/FLEXPART_ROOT_TEMPLATE/scripts/flex_extract_v7.0.3/python/", line 655, in dataRetrieve
    print 'target: ', target
UnboundLocalError: local variable 'target' referenced before assignment 

Change History (4)

comment:1 Changed 6 years ago by anphi

Solved by changing some lines in the file! See code snipet below:

651         attrs['class'] = mclass
652        target = attrs.get('target')
653        if not int(self.public):
654            del attrs['target']
655        print 'target: ', target 

Repository is up to date!

comment:2 Changed 6 years ago by anphi

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 6 years ago by pesei

  • Component changed from FP input data to flex_extract
  • Milestone set to flex_extract_v7.1

comment:4 Changed 6 years ago by pesei

  • Milestone flex_extract_v7.1 deleted
Note: See TracTickets for help on using tickets.
hosted by ZAMG