Пример #1
0
 def _unbox_exc(self, raw):  # dispatch?
     return vinegar.load(
         raw,
         import_custom_exceptions=self._config["import_custom_exceptions"],
         instantiate_custom_exceptions=self.
         _config["instantiate_custom_exceptions"],
         instantiate_oldstyle_exceptions=self.
         _config["instantiate_oldstyle_exceptions"])
Пример #2
0
 def _dispatch_exception(self, seq, raw):
     obj = vinegar.load(raw,
         import_custom_exceptions = self._config["import_custom_exceptions"],
         instantiate_custom_exceptions = self._config["instantiate_custom_exceptions"],
         instantiate_oldstyle_exceptions = self._config["instantiate_oldstyle_exceptions"])
     if seq in self._async_callbacks:
         self._async_callbacks.pop(seq)(True, obj)
     else:
         self._sync_replies[seq] = (True, obj)
Пример #3
0
 def _dispatch_exception(self, seq, raw):
     obj = vinegar.load(raw,
         import_custom_exceptions = self._config["import_custom_exceptions"],
         instantiate_custom_exceptions = self._config["instantiate_custom_exceptions"],
         instantiate_oldstyle_exceptions = self._config["instantiate_oldstyle_exceptions"])
     if seq in self._async_callbacks:
         self._async_callbacks.pop(seq)(True, obj)
     else:
         self._sync_replies[seq] = (True, obj)
Пример #4
0
 def _unbox_exc(self, raw):
     return vinegar.load(raw,
         import_custom_exceptions = self._config["import_custom_exceptions"],
         instantiate_custom_exceptions = self._config["instantiate_custom_exceptions"],
         instantiate_oldstyle_exceptions = self._config["instantiate_oldstyle_exceptions"])