diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 84ed74ce..51306f6d 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -fce0c-dirty +413a-dirty diff --git a/pylot/core/util/map_projection.py b/pylot/core/util/map_projection.py index 53fc8ac7..afa646b5 100644 --- a/pylot/core/util/map_projection.py +++ b/pylot/core/util/map_projection.py @@ -271,8 +271,14 @@ class map_projection(QtGui.QWidget): if hasattr(self, 'cid'): self.canvas.mpl_disconnect(self.cid) del(self.cid) - self.sc.remove() - self.legend.remove() + try: + self.sc.remove() + except Exception as e: + print('Warning: could not remove station scatter plot.\nReason: {}'.format(e)) + try: + self.legend.remove() + except Exception as e: + print('Warning: could not remove legend. Reason: {}'.format(e)) self.canvas.draw() def remove_contourf(self):