We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0de7b01 + 9801e89 commit c24bce5Copy full SHA for c24bce5
python/makerbotapi/makerbotapi.py
@@ -509,6 +509,11 @@ def authenticate_fcgi(self):
509
self.auth_code = response.get('code')
510
break
511
512
+ if response.get('answer') == 'rejected':
513
+ error_message = "Pairing mode is already active for this printer. " \
514
+ "Press a button on printer to disable pairing mode."
515
+ raise AuthenticationError(error_message)
516
+
517
if time.time() - start_time >= self.auth_timeout:
518
raise AuthenticationTimeout
519
0 commit comments