Skip to content

Commit

Permalink
Merge pull request #434 from pzskc383/gio-http-fix
Browse files Browse the repository at this point in the history
get QR with urllib if http is not supported on gio
  • Loading branch information
kozec authored Mar 17, 2018
2 parents fd7637e + 11392c4 commit 65946ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncthing_gtk/iddialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def cb_syncthing_qr(self, io, results, *a):
self["vQR"].set_from_file(tf.name)
os.unlink(tf.name)
except GLib.Error, e:
if e.code == 14:
if e.code in [14, 15]:
# Unauthorized. Grab CSRF token from daemon and try again
log.warning("Failed to load image using glib. Retrying with urllib2.")
self.load_data_urllib()
Expand Down

0 comments on commit 65946ef

Please sign in to comment.