Skip to content

Commit

Permalink
[FIX] Raise a message when we have a network error in project server
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Nov 20, 2017
1 parent 2988b7e commit 658eb6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/roam/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from qgis.core import QgsNetworkAccessManager

from roam.api import RoamEvents
import roam.project


Expand Down Expand Up @@ -283,7 +284,9 @@ def list_versions(self, reply, installedprojects):
if updateable or new:
self.foundProjects.emit(updateable, new)
else:
roam.utils.warning("Error in network request for projects: {}".format(reply.error()))
msg = "Error in network request for projects: {}".format(reply.errorString())
roam.utils.warning(msg)
RoamEvents.raisemessage("Project Server Message", msg, level=RoamEvents.WARNING)

def update_project(self, project, version):
self.projectUpdateStatus.emit(project.name, "Pending")
Expand Down

0 comments on commit 658eb6d

Please sign in to comment.